} catch (NotAuthorizedException e) {
} catch (NotAuthorizedFilterException e) {
    public ActionForward enrollmentConfirmation(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 studentCurricularPlanId = Integer.valueOf(request                .getParameter("studentCurricularPlanId"));        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"));            }        } 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 (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 prepareEnrollmentChooseCurricularCourses(mapping, form, request, response);        }        List curriculum = null;        Object args2[] = { executionDegreeId, studentCurricularPlanId };        try {            curriculum = (ArrayList) ServiceManagerServiceFactory.executeService(userView,                    "ReadStudentCurriculumForEnrollmentConfirmation", args2);        } catch (NotAuthorizedException e) {            if (e.getMessage() != null) {                addAuthorizationErrors(errors, e);            } else {                errors.add("notauthorized", new ActionError("error.exception.notAuthorized"));            }            saveErrors(request, errors);            return prepareEnrollmentChooseCurricularCourses(mapping, form, request, response);        }        Collections.sort(infoStudentEnrolmentContext.getStudentCurrentSemesterInfoEnrollments(),                new BeanComparator("infoCurricularCourse.name"));        sortCurriculum(curriculum);        request.setAttribute("infoStudentEnrolmentContext", infoStudentEnrolmentContext);        request.setAttribute("curriculum", curriculum);        return mapping.findForward("enrollmentConfirmation");    }