String label = dbItem.getKey().getColumnQualifier().toString();
byte[] value = dbItem.getValue().get();
String colVis = dbItem.getKey().getColumnVisibility().toString();
String colFam = dbItem.getKey().getColumnFamily().toString();
long timestamp = dbItem.getKey().getTimestamp();
SecurityByteValueCell cell;
if(recordCF & recordTsAndColVis) {
cell = new SecurityByteValueCell(label, value, timestamp, colVis, colFam);
} else if (recordCF) {
cell = new SecurityByteValueCell(label, value, colFam);
} else if (recordTsAndColVis) {
cell = new SecurityByteValueCell(label, value, timestamp, colVis);
} else {
cell = new SecurityByteValueCell(label, value);
}
cellGroup.addCell(cell);
return cellGroup;
}