code: @Override
      protected List<Object> populateEntities(EntityMetadata m, Client client)
      {
  
          ClientMetadata clientMetadata = ((ClientBase) client).getClientMetadata();
  
          if (!MetadataUtils.useSecondryIndex(clientMetadata) && (clientMetadata.getIndexImplementor() != null))
          {
              return populateUsingLucene(m, client, null, kunderaQuery.getResult());
          }
          else
          {
              List results = onQuery(m, client);
              return results;
          }
      }
docs: /*
  (non-Javadoc)
  
  @see
  com.impetus.kundera.query.QueryImpl#populateEntities(com.impetus.kundera
  .metadata.model.EntityMetadata, com.impetus.kundera.client.Client)