code: protected QueryResult getQueryResult(QueryResponse queryResponse) {
          QueryResult queryResult = null;
          if (queryResponse != null) {
              queryResult = new QueryResult();
              queryResult.setEntities(getEntities(queryResponse));
              queryResult.setFault(queryResponse.getFault());
              queryResult.setMaxResults(queryResponse.getMaxResults());
              queryResult.setStartPosition(queryResponse.getStartPosition());
              queryResult.setTotalCount(queryResponse.getTotalCount());
          }
  
          return queryResult;
      }
docs: Method to read the query response from QueryResponse and set into QueryResult
  
  @param queryResponse
  the query response
  @return queryResult