private void createOptionalEnrolmentFor(final EnrollmentCondition enrollmentCondition,
final IDegreeModuleToEvaluate degreeModuleToEvaluate, final CurriculumGroup curriculumGroup) {
final OptionalDegreeModuleToEnrol optionalDegreeModuleToEnrol = (OptionalDegreeModuleToEnrol) degreeModuleToEvaluate;
final OptionalCurricularCourse optionalCurricularCourse =
(OptionalCurricularCourse) optionalDegreeModuleToEnrol.getDegreeModule();
final CurricularCourse curricularCourse = optionalDegreeModuleToEnrol.getCurricularCourse();
getStudentCurricularPlan().createOptionalEnrolment(curriculumGroup, getExecutionSemester(), optionalCurricularCourse,
curricularCourse, enrollmentCondition);