code: public void addQuery(URI uri)
    {
      try
      {
        addQuery(uri.getRawQuery(), false);
      }
      catch(URISyntaxException e)
      {
        // should not happen!
        throw new RuntimeException(e);
      }
    }
docs: Adds the query extracted from the URI. No Exception is thrown because the
  uri could not be built if it was not correct.
  
  @param uri