8586878889909192939495
List<Task> matchingTasks = executeTaskQuery(firstResult, maxResults, query); List<TaskDto> tasks = new ArrayList<TaskDto>(); for (Task task : matchingTasks) { TaskDto returnTask = TaskDto.fromEntity(task); tasks.add(returnTask); } return tasks; }