Integer individualCountMax = rs.getInt(5);
Date oldestRecord = getDate(rs.getString(6));
Date newestRecord = getDate(rs.getString(7));
AggregateResponseEntry entry = new AggregateResponseEntry(
Utils.list(new KeyValuePair("lat", lat), new KeyValuePair("long", lon)),
count, individualCountSum, individualCountMax, oldestRecord, newestRecord
);
return entry;
}