code: public WebTarget appendPathAndQueryParameters(final WebTarget webTarget) {
      ArgumentChecker.notNull(webTarget, "webTarget");
      WebTarget resultTarget = webTarget;
      resultTarget = resultTarget.path(DATASETS_RELATIVE_URL + EXTENSION);
      if (_databaseCode != null) {
        resultTarget = resultTarget.queryParam(DATABASE_CODE_PARAM, _databaseCode);
      }
      if (_query != null) {
        resultTarget = resultTarget.queryParam(QUERY_PARAM, _query);
      }
      if (_pageNumber != null) {
        resultTarget = resultTarget.queryParam(PAGE_PARAM, _pageNumber);
      }
      if (_maxDocsPerPage != null) {
        resultTarget = resultTarget.queryParam(PER_PAGE_PARAM, _maxDocsPerPage);
      }
      return resultTarget;
    }
docs: Append any specified parameters to the provided WebTarget.
  
  @param webTarget a web target used by the Jersey Client API, not null
  @return the WebTarget with any path and query parameters appended