}
}
private static void moveEnrolments(final OptionalCurricularCoursesLocationBean bean) throws FenixServiceException {
for (final EnrolmentLocationBean line : bean.getEnrolmentBeans()) {
final CurriculumGroup curriculumGroup = line.getCurriculumGroup(bean.getStudentCurricularPlan());
if (curriculumGroup == null) {
throw new FenixServiceException("error.MoveCurriculumLines.invalid.curriculumGroup");
}
bean.getStudentCurricularPlan().convertEnrolmentToOptionalEnrolment(line.getEnrolment(), curriculumGroup,
line.getOptionalCurricularCourse());