code: @Override
      protected List<Object> populateEntities(EntityMetadata m, Client client)
      {
          MetamodelImpl metaModel = (MetamodelImpl) kunderaMetadata.getApplicationMetadata().getMetamodel(
                  m.getPersistenceUnit());
          EntityType entity = metaModel.entity(m.getEntityClazz());
          Expression whereExpression = KunderaQueryUtils.getWhereClause(kunderaQuery.getJpqlExpression());
  
          QueryBuilder filter = whereExpression == null || whereExpression instanceof NullExpression ? null
                  : esFilterBuilder.populateFilterBuilder(((WhereClause) whereExpression).getConditionalExpression(), m);
  
          return ((ESClient) client).executeQuery(filter, buildAggregation(kunderaQuery, m, filter), m,
                  getKunderaQuery(),this.firstResult, this.maxResult);
      }
docs: /*
  (non-Javadoc)
  
  @see
  com.impetus.kundera.query.QueryImpl#populateEntities(com.impetus.kundera
  .metadata.model.EntityMetadata, com.impetus.kundera.client.Client)