def save(connection)
      xml = '<EngineSaveRequest session-id="' + connection.session_id + '">'
      xml << to_xml
      xml << '</EngineSaveRequest>'

      r = connection.execute(xml, '1.2')
      if r.success
        r.res.elements.each('EngineSaveResponse/EngineConfig') do |v|
          return @id = v.attributes['id'].to_i
        end
      end
    end
def save(connection)
      xml = '<EngineSaveRequest session-id="' + connection.session_id + '">'
      xml << to_xml
      xml << '</EngineSaveRequest>'

      r = connection.execute(xml, '1.2')
      if r.success
        r.res.elements.each('EngineSaveResponse/EngineConfig') do |v|
          return @id = v.attributes['id'].to_i
        end
      end
    end
Save this engine configuration to the security console.

 @param [Connection] connection Connection to console where site exists.
 @return [Fixnum] ID assigned to the scan engine.