code: @Override
      protected List populateEntities(EntityMetadata m, Client client)
      {
          ApplicationMetadata appMetadata = kunderaMetadata.getApplicationMetadata();
          try
          {
              String query = appMetadata.getQuery(getJPAQuery());
              if (kunderaQuery.isNative())
              {
                  // Native Query Support is enabled
                  kunderaQuery.setAggregated(isAggregatedQuery());
                  return ((SparkClient) client).executeQuery(query == null ? getJPAQuery() : query, m, kunderaQuery);
              }
          }
          catch (Exception e)
          {
  
              logger.error("Error during executing query, Caused by:", e);
              throw new QueryHandlerException(e);
          }
          return null;
      }
docs: /*
  (non-Javadoc)
  
  @see
  com.impetus.kundera.query.QueryImpl#populateEntities(com.impetus.kundera
  .metadata.model.EntityMetadata, com.impetus.kundera.client.Client)