if (row != null && row.getRecords() != null) {
for (Record record : row.getRecords()) {
String family = record.getFamily();
List<ResultRow> fam = (List<ResultRow>) getFam(family, rows, false);
ResultRow rowData = getRow(row.getId(), fam);
rowData.getRecords().add(buildRow(record.getColumns(), record.getRecordId()));
}
}
results.put(DATA_KEY, rows);
results.put(FAMILY_KEY, new HashSet<String>(Arrays.asList(families)));