public <T extends TaskTO> List<T> listTasks(final Class<T> reference, final int page, final int size) {
return (List<T>) getService(TaskService.class).list(getTaskType(reference), page, size);
}
private TaskType getTaskType(final Class<?> reference) {
TaskType result = null;
if (PropagationTaskTO.class.equals(reference)) {
result = TaskType.PROPAGATION;
} else if (NotificationTaskTO.class.equals(reference)) {
result = TaskType.NOTIFICATION;
} else if (SchedTaskTO.class.equals(reference)) {