labels, criterions);
final List<CompletedEstimatedHoursPerTaskDTO> completedEstimatedHoursPerTaskList =
new ArrayList<CompletedEstimatedHoursPerTaskDTO>();
for (TaskElement task: tasks) {
completedEstimatedHoursPerTaskList.add(
new CompletedEstimatedHoursPerTaskDTO((Task)task, deadlineLocalDate));
}
if (!completedEstimatedHoursPerTaskList.isEmpty()) {
return new JRBeanCollectionDataSource(completedEstimatedHoursPerTaskList);
} else {
return new JREmptyDataSource();