code: public QueryResult executeQuery(String query) throws FMSException {
  
          IntuitMessage intuitMessage = prepareQuery(query);
  
          // execute interceptors
          executeInterceptors(intuitMessage);
  
          QueryResult queryResult = null;
  
          // Iterate the IntuitObjects list in QueryResponse and convert to <T> entity
          IntuitResponse intuitResponse = (IntuitResponse) intuitMessage.getResponseElements().getResponse();
          if (intuitResponse != null) {
              QueryResponse queryResponse = intuitResponse.getQueryResponse();
              if (queryResponse != null) {
                  queryResult = getQueryResult(queryResponse);
              }
          }
          return queryResult;
      }
docs: Method to retrieve records for the given list of query
  
  @param query
  the query string
  @return query result
  @throws FMSException
  throws FMSException