for (final CurriculumModule curriculumModule : curricularCourse.getCurriculumModulesSet()) {
if (curriculumModule.isEnrolment()) {
final Enrolment enrolment = (Enrolment) curriculumModule;
if (enrolment.getExecutionYear() == getExecutionYear()) {
final ExecutionSemester executionSemester = enrolment.getExecutionPeriod();
if (curricularCourse.isAnual()) {
addEtiRow(spreadsheet, curricularCourse.getDegree(), curricularCourse, enrolment,
executionSemester, executionSemester);
if (executionSemester.getSemester().intValue() == 1) {
final ExecutionSemester nextSemester =
executionSemester.getNextExecutionPeriod();
addEtiRow(spreadsheet, curricularCourse.getDegree(), curricularCourse,
enrolment, nextSemester, executionSemester);
}
} else {