def parameterize_uri(uri, parameters)
      params = Hash.try_convert(parameters)
      unless params.nil? || params.empty?
        uri = uri.concat(('?').concat(parameters.map { |k, v| "#{k}=#{CGI.escape(v.to_s)}" }.join('&')))
      end
      uri
    end
def parameterize_uri(uri, parameters)
      params = Hash.try_convert(parameters)
      unless params.nil? || params.empty?
        uri = uri.concat(('?').concat(parameters.map { |k, v| "#{k}=#{CGI.escape(v.to_s)}" }.join('&')))
      end
      uri
    end
=== Internal helper methods below this line. ===

 These are internal utility methods, not subject to backward compatibility
 concerns.

 Append the query parameters to given URI.

 @param [String] uri Controller address relative to https://host:port
 @param [Hash] parameters Hash of attributes that need to be sent
    to the controller.
 @return [Hash] The parameterized URI.