public void DeleteEscalator(OpenVASEscalator escalator)
        {
            if (escalator.RemoteEscalatorID == Guid.Empty)
                throw new Exception("Can't delete config that hasn't been created.");

            XmlDocument response = this.DeleteEscalator(escalator.RemoteEscalatorID.ToString());

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

            XmlDocument response = this.CreateEscalator(escalator.Name, escalator.Condition.Condition, escalator.Condition.ConditionData, escalator.Condition.ConditionName);

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

            return escalator;
        }