createCourseStatistics(degreeCourseStatistics, evaluations);
createCourseStatistics(degreeCourseStatistics, enrollments);
    public List<DegreeCourseStatisticsDTO> run(Integer competenceCourseId, Integer executionYearId)            throws FenixServiceException, ExcepcaoPersistencia {        CompetenceCourse competenceCourse = rootDomainObject.readCompetenceCourseByOID(competenceCourseId);        ExecutionYear executionYear = rootDomainObject.readExecutionYearByOID(executionYearId);        Map<Degree, List<CurricularCourse>> groupedCourses = competenceCourse.getAssociatedCurricularCoursesGroupedByDegree();        List<DegreeCourseStatisticsDTO> results = new ArrayList<DegreeCourseStatisticsDTO>();        for (Degree degree : groupedCourses.keySet()) {            List<EnrolmentEvaluation> evaluations = new ArrayList<EnrolmentEvaluation>();            List<CurricularCourse> curricularCourses = groupedCourses.get(degree);            for (CurricularCourse curricularCourse : curricularCourses) {                evaluations.addAll(curricularCourse.getActiveEnrollmentEvaluations(executionYear));            }            DegreeCourseStatisticsDTO degreeCourseStatistics = new DegreeCourseStatisticsDTO();            degreeCourseStatistics.setIdInternal(degree.getIdInternal());            degreeCourseStatistics.setName(degree.getNome());            createCourseStatistics(degreeCourseStatistics, evaluations);            results.add(degreeCourseStatistics);        }        return results;    }