code: private List populateData(EntityMetadata m, Map<Bytes, List<Column>> qResults, List<Object> entities,
              boolean isRelational, List<String> relationNames, CassandraDataHandler dataHandler)
      {
          if (m.getType().isSuperColumnFamilyMetadata())
          {
              Set<Bytes> primaryKeys = qResults.keySet();
  
              if (primaryKeys != null && !primaryKeys.isEmpty())
              {
                  Object[] rowIds = new Object[primaryKeys.size()];
                  int i = 0;
                  for (Bytes b : primaryKeys)
                  {
                      rowIds[i] = PropertyAccessorHelper.getObject(b, (Field) m.getIdAttribute().getJavaMember());
                      i++;
                  }
                  entities.addAll(findAll(m.getEntityClazz(), null, rowIds));
              }
  
          }
          else
          {
              Iterator<Bytes> rowIter = qResults.keySet().iterator();
              while (rowIter.hasNext())
              {
                  Bytes rowKey = rowIter.next();
                  List<Column> columns = qResults.get(rowKey);
                  try
                  {
                      Object id = PropertyAccessorHelper
                              .getObject(m.getIdAttribute().getJavaType(), rowKey.toByteArray());
                      Object e = null;
                      e = dataHandler.populateEntity(new ThriftRow(id, m.getTableName(), columns,
                              new ArrayList<SuperColumn>(0), new ArrayList<CounterColumn>(0),
                              new ArrayList<CounterSuperColumn>(0)), m, KunderaCoreUtils.getEntity(e), relationNames,
                              isRelational);
                      if (e != null)
                      {
                          entities.add(e);
                      }
                  }
                  catch (IllegalStateException e)
                  {
                      log.error("Error while returning entities for {}, Caused by: .", m.getEntityClazz(), e);
                      throw new KunderaException(e);
                  }
                  catch (Exception e)
                  {
                      log.error("Error while returning entities for {}, Caused by: .", m.getEntityClazz(), e);
                      throw new KunderaException(e);
                  }
              }
          }
          return entities;
      }
docs: Populate data.
  
  @param m
  the m
  @param qResults
  the q results
  @param entities
  the entities
  @param isRelational
  the is relational
  @param relationNames
  the relation names
  @param dataHandler
  the data handler
  @return the list