return createCurricularCourses2EnrolFrom(searchedCurricularCourses);
} else { if (registration.getDegreeType().equals(DegreeType.BOLONHA_ADVANCED_FORMATION_DIPLOMA)) { searchedCurricularCourses = getActiveCurricularCoursesForBolonha( possibleStudentCurricularCoursesToEnrol, executionPeriod); } else { searchedCurricularCourses = getActiveCurricularCourses( possibleStudentCurricularCoursesToEnrol, executionPeriod); }
	public List<CurricularCourse2Enroll> run(final Registration registration, final DegreeType degreeType,			final ExecutionPeriod executionPeriod, final Integer executionDegreeID,			final List<Integer> curricularYearsList, final List<Integer> curricularSemestersList)			throws FenixServiceException {		if (registration == null) {			throw new FenixServiceException("error.student.curriculum.noCurricularPlans");		}		final StudentCurricularPlan studentCurricularPlan = registration.getActiveOrConcludedStudentCurricularPlan();		if (studentCurricularPlan == null) {			throw new FenixServiceException("error.student.curriculum.noCurricularPlans");		}		final ExecutionDegree executionDegree = rootDomainObject				.readExecutionDegreeByOID(executionDegreeID);		if (executionDegree == null) {			throw new FenixServiceException("error.degree.noData");		}		if (executionDegree.getDegreeCurricularPlan() == null) {			throw new FenixServiceException("error.degree.noData");		}		final List<CurricularCourse> possibleStudentCurricularCoursesToEnrol = findCurricularCourses(				executionDegree.getDegreeCurricularPlan().getCurricularCourses(), studentCurricularPlan,				executionPeriod);		final List<CurricularCourse> searchedCurricularCourses;		if (filterByYearAndSemester(curricularYearsList, curricularSemestersList)) {						searchedCurricularCourses = getActiveAndFilteredCurricularCourses(					possibleStudentCurricularCoursesToEnrol, verifyYears(curricularYearsList),					verifySemesters(curricularSemestersList), executionPeriod);					} else {			searchedCurricularCourses = getActiveCurricularCourses(					possibleStudentCurricularCoursesToEnrol, executionPeriod);		}		return createCurricularCourses2EnrolFrom(searchedCurricularCourses);	}