code: public QueryResult query( String query,
                                String queryLanguage ) {
          String url = jsonRestClient.appendToURL(QUERY_METHOD);
          String contentType = contentTypeForQueryLanguage(queryLanguage);
          JSONRestClient.Response response = jsonRestClient.postStream(new ByteArrayInputStream(query.getBytes()), url, contentType);
          if (!response.isOK()) {
              throw new RuntimeException(JdbcI18n.invalidServerResponse.text(url, response.asString()));
          }
          return new QueryResult(response.json());
      }
docs: Runs a query in the specified language against the repository from {@code repoUrl}.
  
  @param query a {@code String}, never {@code null}
  @param queryLanguage the language of the query, never {@code null}
  @return a {@link QueryResult} instance, never {@code null}
  @see javax.jcr.query.Query