GroupByClause clause = stmt.getGroupByClause();
if (clause == null) {
return newLinkedHashMap();
} else {
Iterable<String> groupByKeys = clause.itemsInStr();
Map<String, Object> groupByRecord = newLinkedHashMap();
for (String propertyName : groupByKeys) {
groupByRecord.put(propertyName, record.lookup(propertyName).getPayload());