}
public ActionForward enrolStudent(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws FenixServiceException {
MobilityIndividualApplicationProcess process = getProcess(request);
MobilityIndividualApplication candidacy = process.getCandidacy();
Boolean restrictEnrollment;
ErasmusBolonhaStudentEnrollmentBean bean;
if (candidacy.getRegistration().getActiveStudentCurricularPlan() != null) {
restrictEnrollment = true;
ExecutionSemester semester = ExecutionSemester.readByYearMonthDay(new YearMonthDay());
bean =
new ErasmusBolonhaStudentEnrollmentBean(candidacy.getRegistration().getActiveStudentCurricularPlan(),
semester, null, CurricularRuleLevel.ENROLMENT_NO_RULES, candidacy);
} else {
restrictEnrollment = false;
bean = null;
}