ExecutionSemester end, CurricularRuleParametersDTO parametersDTO) {
final CourseGroup contextCourseGroup =
(CourseGroup) FenixFramework.getDomainObject(parametersDTO.getContextCourseGroupID());
final Degree degree = FenixFramework.getDomainObject(parametersDTO.getSelectedDegreeID());
final DepartmentUnit departmentUnit =
(DepartmentUnit) FenixFramework.getDomainObject(parametersDTO.getSelectedDepartmentUnitID());
return new AnyCurricularCourse((OptionalCurricularCourse) toApplyRule, contextCourseGroup, begin, end,
parametersDTO.getMinimumCredits(), parametersDTO.getMaximumCredits(), parametersDTO.getCurricularPeriodInfoDTO()
.getOrder(), parametersDTO.getMinimumYear(), parametersDTO.getMaximumYear(),