Function<List<Row>, List<T>> rowsToEntities = new Function<List<Row>, List<T>>() {
@Override
public List<T> apply(List<Row> rows) {
List<T> clusteredEntities = new ArrayList<>();
for (Row row : rows) {
T clusteredEntity = meta.forOperations().instanciate();
mapper.setNonCounterPropertiesToEntity(row, meta, clusteredEntity);
meta.forInterception().intercept(clusteredEntity, Event.POST_LOAD);
clusteredEntities.add(clusteredEntity);
}
return clusteredEntities;