code: protected List populateEntitiesFromKeySlices(EntityMetadata m, boolean isWrapReq, List<String> relations,
          List<KeySlice> keys, CassandraDataHandler dataHandler) throws Exception {
          List results;
          MetamodelImpl metaModel =
              (MetamodelImpl) kunderaMetadata.getApplicationMetadata().getMetamodel(m.getPersistenceUnit());
  
          Set<String> superColumnAttribs = metaModel.getEmbeddables(m.getEntityClazz()).keySet();
          results = new ArrayList(keys.size());
  
          ThriftDataResultHelper dataGenerator = new ThriftDataResultHelper();
          for (KeySlice key : keys) {
              List<ColumnOrSuperColumn> columns = key.getColumns();
  
              byte[] rowKey = key.getKey();
  
              Object id = PropertyAccessorHelper.getObject(m.getIdAttribute().getJavaType(), rowKey);
  
              Object e = null;
              Map<ByteBuffer, List<ColumnOrSuperColumn>> data = new HashMap<ByteBuffer, List<ColumnOrSuperColumn>>(1);
              data.put(ByteBuffer.wrap(rowKey), columns);
              ThriftRow tr = new ThriftRow();
              tr.setId(id);
              tr.setColumnFamilyName(m.getTableName());
              tr = dataGenerator.translateToThriftRow(data, m.isCounterColumnType(), m.getType(), tr);
  
              e = dataHandler.populateEntity(tr, m, KunderaCoreUtils.getEntity(e), relations, isWrapReq);
  
              if (e != null) {
                  results.add(e);
              }
          }
          return results;
      }
docs: Populate entities from key slices.
  
  @param m
  the m
  @param isWrapReq
  the is wrap req
  @param relations
  the relations
  @param keys
  the keys
  @param dataHandler
  the data handler
  @return the list
  @throws Exception
  the exception