code: private List populateData(EntityMetadata m, List<KeySlice> keySlices, List<Object> entities, boolean isRelational,
              List<String> relationNames)
      {
          try
          {
              if (m.getType().isSuperColumnFamilyMetadata())
              {
                  List<Object> rowKeys = ThriftDataResultHelper.getRowKeys(keySlices, m);
  
                  Object[] rowIds = rowKeys.toArray();
                  entities.addAll(findAll(m.getEntityClazz(), null, rowIds));
              }
              else
              {
                  for (KeySlice keySlice : keySlices)
                  {
                      byte[] key = keySlice.getKey();
                      List<ColumnOrSuperColumn> coscList = keySlice.getColumns();
  
                      List<Column> columns = ThriftDataResultHelper.transformThriftResult(coscList,
                              ColumnFamilyType.COLUMN, null);
                      Object e = null;
                      Object id = PropertyAccessorHelper.getObject(m.getIdAttribute().getJavaType(), key);
                      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);
                      entities.add(e);
                  }
              }
          }
          catch (Exception e)
          {
  
              log.error("Error while populating data for relations of column family {}, Caused by: .", m.getTableName(),
                      e);
              throw new KunderaException(e);
          }
          return entities;
      }
docs: Populate data.
  
  @param m
  the m
  @param keySlices
  the key slices
  @param entities
  the entities
  @param isRelational
  the is relational
  @param relationNames
  the relation names
  @return the list