}
public ActionForward enrolInDegreeModules(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws FenixServiceException {
final BolonhaStudentEnrollmentBean bolonhaStudentEnrollmentBean = getBolonhaStudentEnrollmentBeanFromViewState();
try {
final RuleResult ruleResults =
EnrolBolonhaStudentInCurriculumValidationContext.run(
bolonhaStudentEnrollmentBean.getStudentCurricularPlan(), bolonhaStudentEnrollmentBean.getExecutionPeriod(),
bolonhaStudentEnrollmentBean.getDegreeModulesToEvaluate(),
bolonhaStudentEnrollmentBean.getCurriculumModulesToRemove(),
bolonhaStudentEnrollmentBean.getCurricularRuleLevel());
if (!bolonhaStudentEnrollmentBean.getDegreeModulesToEvaluate().isEmpty()
|| !bolonhaStudentEnrollmentBean.getCurriculumModulesToRemove().isEmpty()) {
addActionMessage("success", request, "label.save.success");
}
if (ruleResults.isWarning()) {
addRuleResultMessagesToActionMessages("warning", request, ruleResults);