def cloneDatabase( dbid, newdbname, newdbdesc, keepData, asTemplate = nil, usersAndRoles = nil )

      @dbid, @newdbname, @newdbdesc, @keepData, @asTemplate, @usersAndRoles = dbid, newdbname, newdbdesc, keepData, asTemplate, usersAndRoles
      
      @keepData = "1" if @keepData.to_s == "true" 
      @keepData = "0" if @keepData != "1"

      xmlRequestData = toXML( :newdbname, @newdbname )
      xmlRequestData << toXML( :newdbdesc, @newdbdesc )
      xmlRequestData << toXML( :keepData, @keepData )
      xmlRequestData << toXML( :asTemplate, @asTemplate ) if @asTemplate
      xmlRequestData << toXML( :usersAndRoles, @usersAndRoles ) if @usersAndRoles

      sendRequest( :cloneDatabase, xmlRequestData )

      @newdbid = getResponseValue( :newdbid )

      return self if @chainAPIcalls
      @newdbid
    end
def cloneDatabase( dbid, newdbname, newdbdesc, keepData, asTemplate = nil, usersAndRoles = nil )

      @dbid, @newdbname, @newdbdesc, @keepData, @asTemplate, @usersAndRoles = dbid, newdbname, newdbdesc, keepData, asTemplate, usersAndRoles
      
      @keepData = "1" if @keepData.to_s == "true" 
      @keepData = "0" if @keepData != "1"

      xmlRequestData = toXML( :newdbname, @newdbname )
      xmlRequestData << toXML( :newdbdesc, @newdbdesc )
      xmlRequestData << toXML( :keepData, @keepData )
      xmlRequestData << toXML( :asTemplate, @asTemplate ) if @asTemplate
      xmlRequestData << toXML( :usersAndRoles, @usersAndRoles ) if @usersAndRoles

      sendRequest( :cloneDatabase, xmlRequestData )

      @newdbid = getResponseValue( :newdbid )

      return self if @chainAPIcalls
      @newdbid
    end
API_CloneDatabase