@Override
  public MultivaluedMap<String, String> getQueryParameters() {
    List<NameValuePair> parametersList = URLEncodedUtils.parse(uri, "UTF-8");

    MultivaluedMap<String, String> parameters = new MultivaluedHashMap();
    for (NameValuePair pair : parametersList) {
      parameters.add(pair.getName(), pair.getValue() == null ? "" : pair.getValue());
    }
    return parameters;
  }
Internal {@link UriInfo} implementation. Most of the methods are not
currently supported.

Can be used for internal REST API calls with avoiding REST layer.
ambari-server/src/main/java/org/apache/ambari/server/api/services/LocalUriInfo.java