} catch (NotAuthorizedException e) {
} catch (NotAuthorizedFilterException e) {
    public ActionForward enrollInCurricularCourse(ActionMapping mapping, ActionForm form,            HttpServletRequest request, HttpServletResponse response) throws Exception {        super.validateToken(request, form, mapping, "error.transaction.enrollment");        ActionErrors errors = new ActionErrors();        IUserView userView = SessionUtils.getUserView(request);        DynaValidatorForm enrollmentForm = (DynaValidatorForm) form;        String[] curricularCoursesToEnroll = (String[]) enrollmentForm                .get("unenrolledCurricularCourses");        Integer studentCurricularPlanId = Integer.valueOf(request                .getParameter("studentCurricularPlanId"));        List toEnrollString = Arrays.asList(curricularCoursesToEnroll);        List toEnroll = (List) CollectionUtils.collect(toEnrollString, new Transformer() {            public Object transform(Object arg0) {                String string = (String) arg0;                return new Integer(string.split("-")[0]);            }        });        CurricularCourseEnrollmentType enrollmentType = CurricularCourseEnrollmentType                .getEnum(new Integer((String) ((List) CollectionUtils.collect(toEnrollString,                        new Transformer() {                            public Object transform(Object arg0) {                                String string = (String) arg0;                                return string.split("-")[1];                            }                        })).get(0)).intValue());        String courseType = (String) enrollmentForm.get("courseType");        if (toEnroll.size() == 1) {            Integer executionDegreeId = getExecutionDegree(request);            Object[] args = { executionDegreeId, studentCurricularPlanId, toEnroll.get(0), null,                    enrollmentType, new Integer(courseType), userView };            try {                ServiceManagerServiceFactory.executeService(userView, "WriteEnrollment", args);            } catch (NotAuthorizedException e) {                if (e.getMessage() != null) {                    addAuthorizationErrors(errors, e);                } else {                    errors.add("notauthorized", new ActionError("error.exception.notAuthorized"));                }                saveErrors(request, errors);                return mapping.findForward("prepareEnrollmentChooseCurricularCourses");            } catch (FenixServiceException e) {                throw new FenixActionException(e);            }        }        return prepareEnrollmentChooseCurricularCourses(mapping, form, request, response);    }