code: public List<JSONObject> queryJava(String queryString, boolean getPatchSets, boolean getCurrentPatchSet,
                                        boolean getFiles) throws SshException, IOException, GerritQueryException {
          return queryJava(queryString, getPatchSets, getCurrentPatchSet, getFiles, false);
      }
docs: Runs the query and returns the result as a list of Java JSONObjects.
  @param queryString the query.
  @param getPatchSets getPatchSets if all patch-sets of the projects found should be included in the result.
  Meaning if --patch-sets should be appended to the command call.
  @param getCurrentPatchSet if the current patch-set for the projects found should be included in the result.
  Meaning if --current-patch-set should be appended to the command call.
  @param getFiles if the files of the patch sets should be included in the result.
  Meaning if --files should be appended to the command call.
  
  @return the query result as a List of JSONObjects.
  @throws GerritQueryException if Gerrit reports an error with the query.
  @throws SshException if there is an error in the SSH Connection.
  @throws IOException for some other IO problem.