setStudentCurricularPlan(studentCurricularPlan);
addEnrolments(enrolments);
for (final SelectedCurricularCourse selectedCurricularCourse : dismissals) {
if (selectedCurricularCourse.isOptional()) {
final SelectedOptionalCurricularCourse selectedOptionalCurricularCourse =
(SelectedOptionalCurricularCourse) selectedCurricularCourse;
Dismissal.createNewOptionalDismissal(this, studentCurricularPlan,
selectedOptionalCurricularCourse.getCurriculumGroup(),
selectedOptionalCurricularCourse.getCurricularCourse(), selectedOptionalCurricularCourse.getCredits());
} else {
Dismissal.createNewDismissal(this, studentCurricularPlan, selectedCurricularCourse.getCurriculumGroup(),
selectedCurricularCourse.getCurricularCourse());
}
}