def save(nsc)
      # load method can return XML missing this required attribute.
      unless REXML::XPath.first(xml, '//*[@recalculation_duration]')
        risk_model = REXML::XPath.first(xml, '//riskModel')
        risk_model.add_attribute('recalculation_duration', 'do_not_recalculate')
      end

      replace_exclusions(xml, asset_exclusions)
      add_control_scanning_to_xml(xml, control_scanning)
      add_asset_linking_to_xml(xml, asset_linking)

      response = AJAX.post(nsc, '/data/admin/global-settings', xml)
      XMLUtils.success? response
    end
def save(nsc)
      # load method can return XML missing this required attribute.
      unless REXML::XPath.first(xml, '//*[@recalculation_duration]')
        risk_model = REXML::XPath.first(xml, '//riskModel')
        risk_model.add_attribute('recalculation_duration', 'do_not_recalculate')
      end

      replace_exclusions(xml, asset_exclusions)
      add_control_scanning_to_xml(xml, control_scanning)
      add_asset_linking_to_xml(xml, asset_linking)

      response = AJAX.post(nsc, '/data/admin/global-settings', xml)
      XMLUtils.success? response
    end
Save any updates to this settings object to the Nexpose console.

 @param [Connection] nsc Connection to a Nexpose console.
 @return [Boolean] Whether saving was successful.