public void DeleteConfig(OpenVASConfig config)
        {
            if (config.RemoteConfigID == Guid.Empty)
                throw new Exception("Can't delete config that hasn't been created.");

            XmlDocument response = this.DeleteConfig(config.RemoteConfigID.ToString());

            foreach (XmlAttribute attr in response.Attributes)
            {
                if (attr.Name == "status" && attr.Value != "200")
                    throw new Exception("Deleting config failed");
            }
        }
        public OpenVASConfig CreateConfigByCopy(OpenVASConfig config)
        {
            if (config.RemoteConfigID != Guid.Empty)
                throw new Exception("This config has already been created.");

            XmlDocument response = this.CreateConfigByCopy(config.Name, config.RemoteConfigID.ToString());

            OpenVASConfig newConfig = new OpenVASConfig();
            newConfig.Name = config.Name;

            foreach (XmlAttribute attr in response.Attributes)
            {
                if (attr.Name == "id")
                    newConfig.RemoteConfigID = new Guid(attr.Value);
            }

            return newConfig;
        }