ErrorCode.ERR_WRONG_PARAMETER,
"writer can't be null."));
}
// build context
WorkTimeReportContext report_context = new WorkTimeReportContext(from, till);
List<Project> projects = new ArrayList<Project>();
projects.add(project);
Collection<WorkDayTimeRecord> records = getData(user, projects, projectActivities, from, till);
for (WorkDayTimeRecord workDayTimeRecord : records) {
report_context.addWorkingTimeRecord(workDayTimeRecord);
}
// fill template
fillTemplate(templateName, report_context, writer);
}