ret.valuesMap.put(aggregatedActivity.fieldName, TimeAggregatedActivityValues.createTimeAggregatedValues(aggregatedActivity.fieldName,
aggregatedActivity.times, count, activityPersistenceFactory));
}
for (SenseiSchema.FieldDefinition field : fieldNames) {
if (field.isActivity && !ret.valuesMap.containsKey(field.name)) {
ActivityPrimitiveValues values = ActivityPrimitiveValues.createActivityPrimitiveValues(activityPersistenceFactory, field, count);
ret.valuesMap.put(field.name, values);
}
}
return ret;
}