} catch (NonExistingServiceException e) { final ActionErrors errors = new ActionErrors(); errors.add("chosenDegree", new ActionError("error.coordinator.noExecutionDegree")); saveErrors(request, errors); } catch (FenixServiceException e) { if (e.getMessage().equals("nullDegree")) { final ActionErrors errors = new ActionErrors();  errors.add("nullCode", new ActionError("error.coordinator.noExecutionDegree")); saveErrors(request, errors); } else { throw new FenixActionException(e); } }
List activeCurricularCourseScopes = null; final Object[] args = { degreeCurricularPlanID }; try { activeCurricularCourseScopes = (List) ServiceUtils.executeService(userView, "ReadActiveDegreeCurricularPlanScopes", args);
    public ActionForward showActiveCurricularCourses(ActionMapping mapping, ActionForm form,            HttpServletRequest request, HttpServletResponse response) throws FenixActionException, FenixFilterException {        final HttpSession session = request.getSession(false);        final IUserView userView = getUserView(request);        final Integer degreeCurricularPlanID = getAndSetIntegerToRequest("degreeCurricularPlanID", request);                List activeCurricularCourseScopes = null;              final Object[] args = { degreeCurricularPlanID };        try {            activeCurricularCourseScopes = (List) ServiceUtils.executeService(userView,                    "ReadActiveDegreeCurricularPlanScopes", args);        } catch (NonExistingServiceException e) {            final ActionErrors errors = new ActionErrors();            errors.add("chosenDegree", new ActionError("error.coordinator.noExecutionDegree"));            saveErrors(request, errors);        } catch (FenixServiceException e) {            if (e.getMessage().equals("nullDegree")) {                final ActionErrors errors = new ActionErrors();                                errors.add("nullCode", new ActionError("error.coordinator.noExecutionDegree"));                saveErrors(request, errors);            } else {                throw new FenixActionException(e);            }        }        if (activeCurricularCourseScopes == null || activeCurricularCourseScopes.size() == 0) {            final ActionErrors errors = new ActionErrors();                        errors.add("noDegreeCurricularPlan", new ActionError(                    "error.nonExisting.AssociatedCurricularCourses"));            saveErrors(request, errors);            return mapping.findForward("showActiveCurricularCourses");        }        //order list by year, next semester, next course        final ComparatorChain comparatorChain = new ComparatorChain();        comparatorChain.addComparator(new BeanComparator(                "infoCurricularSemester.infoCurricularYear.year"));        comparatorChain.addComparator(new BeanComparator("infoCurricularSemester.semester"));        comparatorChain.addComparator(new BeanComparator("infoCurricularCourse.name"));        Collections.sort(activeCurricularCourseScopes, comparatorChain);        request.setAttribute("allActiveCurricularCourseScopes", activeCurricularCourseScopes);        return mapping.findForward("showActiveCurricularCourses");    }