private void load(final DegreeModule degreeModule) {
   degreeModule.getName();
   if (degreeModule.isCourseGroup()) {
     final CourseGroup courseGroup = (CourseGroup) degreeModule;
     for (final org.fenixedu.academic.domain.degreeStructure.Context context :
         courseGroup.getChildContextsSet()) {
       final DegreeModule child = context.getChildDegreeModule();
       load(child);
     }
   } else {
     final CurricularCourse curricularCourse = (CurricularCourse) degreeModule;
     final CompetenceCourse competenceCourse = curricularCourse.getCompetenceCourse();
     if (competenceCourse != null) {
       competenceCourse.getName();
     }
   }
 }
 private void load(final CurriculumModule curriculumModule) {
   if (curriculumModule != null) {
     curriculumModule.getCreationDateDateTime();
     final DegreeModule degreeModule = curriculumModule.getDegreeModule();
     if (degreeModule != null) {
       degreeModule.getName();
     }
     if (curriculumModule.isCurriculumLine()) {
       final CurriculumLine curriculumLine = (CurriculumLine) curriculumModule;
       if (curriculumLine.isEnrolment()) {
         final Enrolment enrolment = (Enrolment) curriculumLine;
         for (final EnrolmentEvaluation enrolmentEvaluation : enrolment.getEvaluationsSet()) {
           enrolmentEvaluation.getGrade();
         }
       }
     } else {
       final CurriculumGroup curriculumGroup = (CurriculumGroup) curriculumModule;
       for (final CurriculumModule child : curriculumGroup.getCurriculumModulesSet()) {
         load(child);
       }
     }
   }
 }