} catch (NotAuthorizedException e) {
} catch (NotAuthorizedFilterException e) {
    private ActionForward prepareEnrollmentChooseCurricularCourses(ActionMapping mapping,            ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {        IUserView userView = SessionUtils.getUserView(request);        ActionErrors errors = new ActionErrors();        DynaValidatorForm enrollmentForm = (DynaValidatorForm) form;        Integer studentNumber = new Integer((String) enrollmentForm.get("studentNumber"));                Integer degreeCurricularPlanID = (Integer) enrollmentForm.get("degreeCurricularPlanID");        request.setAttribute("degreeCurricularPlanID", degreeCurricularPlanID);        Integer executionDegreeId = getExecutionDegree(request);        InfoStudentEnrollmentContext infoStudentEnrolmentContext = null;        Object[] args = { executionDegreeId, null, studentNumber };        try {            if (!(userView.getRoles().contains(new InfoRole(RoleType.DEGREE_ADMINISTRATIVE_OFFICE)) || userView                    .getRoles().contains(new InfoRole(RoleType.DEGREE_ADMINISTRATIVE_OFFICE_SUPER_USER)))) {                infoStudentEnrolmentContext = (InfoStudentEnrollmentContext) ServiceManagerServiceFactory                        .executeService(userView, "ShowAvailableCurricularCoursesNew", args);            } else {                infoStudentEnrolmentContext = (InfoStudentEnrollmentContext) ServiceManagerServiceFactory                        .executeService(userView,                                "ShowAvailableCurricularCoursesWithoutEnrollmentPeriod", args);            }        } catch (NotAuthorizedException e) {            if (e.getMessage() != null) {                addAuthorizationErrors(errors, e);            } else {                errors.add("notauthorized", new ActionError(                        "error.exception.notAuthorized.student.warningTuition"));            }        } catch (ExistingServiceException e) {            if (e.getMessage().equals("student")) {                errors.add("student", new ActionError("error.no.student.in.database", studentNumber));            } else if (e.getMessage().equals("studentCurricularPlan")) {                errors.add("studentCurricularPlan", new ActionError(                        "error.student.curricularPlan.nonExistent"));            }        } catch (OutOfCurricularCourseEnrolmentPeriod e) {            errors.add("enrolment", new ActionError(e.getMessageKey(), Data.format2DayMonthYear(e                    .getStartDate()), Data.format2DayMonthYear(e.getEndDate())));        }catch ( EnrolmentRuleServiceException e) {                        SecretaryEnrolmentStudentReason reason = SecretaryEnrolmentStudentReason.getEnum(e.getErrorType());                        errors.add("enrolmentRule", new ActionError(reason.getName()));                   }          catch (FenixServiceException e) {            if (e.getMessage().equals("degree")) {                errors.add("degree", new ActionError("error.student.degreeCurricularPlan.LEEC"));            }            if (e.getMessage().equals("enrolmentPeriod")) {                errors.add("enrolmentPeriod", new ActionError("error.student.enrolmentPeriod"));            }            throw new FenixActionException(e);        }        if (!errors.isEmpty()) {            saveErrors(request, errors);            return mapping.getInputForward();        }        Collections.sort(infoStudentEnrolmentContext.getStudentCurrentSemesterInfoEnrollments(),                new BeanComparator("infoCurricularCourse.name"));        Integer[] enrolledInArray = buildArrayForForm(infoStudentEnrolmentContext                .getStudentCurrentSemesterInfoEnrollments());        enrollmentForm.set("enrolledCurricularCoursesBefore", enrolledInArray);        enrollmentForm.set("enrolledCurricularCoursesAfter", enrolledInArray);        request.setAttribute("infoStudentEnrolmentContext", infoStudentEnrolmentContext);        return mapping.findForward("prepareEnrollmentChooseCurricularCourses");    }