code: protected List<Object> populateEntities(EntityMetadata m, Client client)
      {
          if (log.isDebugEnabled())
          {
              log.debug("on start of fetching non associated entities");
          }
          List<Object> result = new ArrayList<Object>();
  
          initializeReader();
  
          try
          {
              if (MetadataUtils.useSecondryIndex(((ClientBase) client).getClientMetadata()))
              {
                  List<String> relations = new ArrayList<String>();
                  if (kunderaQuery.isNative())
                  {
                      return ((HibernateClient) client).find(getJPAQuery(), relations, m);
  
                  }
                  else
                  {
                      return ((HibernateClient) client).findByQuery(getJPAQuery(), getParamaters(), firstResult, maxResult);
  
                  }
              }
              else
              {
                  return populateUsingLucene(m, client, result, null);
              }
          }
          catch (Exception e)
          {
              log.error("Error during query execution, Caused by: {}.", e);
              throw new QueryHandlerException(e);
          }
      }
docs: /*
  (non-Javadoc)
  
  @see
  com.impetus.kundera.query.QueryImpl#populateEntities(com.impetus.kundera
  .metadata.model.EntityMetadata, com.impetus.kundera.client.Client)