code: public List<?> loadDataAndPopulateResults(DataFrame dataFrame, EntityMetadata m, KunderaQuery kunderaQuery)
      {
          if (kunderaQuery != null && kunderaQuery.isAggregated())
          {
              return dataFrame.collectAsList();
          }
          // TODO: handle the case of specific field selection
          else
          {
              return populateEntityObjectsList(dataFrame, m);
          }
      }
docs: Load data and populate results.
  
  @param dataFrame
  the data frame
  @param m
  the m
  @param kunderaQuery
  the kundera query
  @return the list