System.out.println(exp.getMessage());
exp.printStackTrace();
    public ActionForward getCurriculumForCoordinator(ActionMapping mapping, ActionForm form,            HttpServletRequest request, HttpServletResponse response) throws Exception {        HttpSession session = request.getSession();        //get and set the degreeCurricularPlanID from the request and onto the request        Integer degreeCurricularPlanID = new Integer(request.getParameter("degreeCurricularPlanID"));        request.setAttribute("degreeCurricularPlanID", degreeCurricularPlanID);        IUserView userView = (IUserView) session.getAttribute(SessionConstants.U_VIEW);        String studentCurricularPlanID = request.getParameter("studentCPID");        if (studentCurricularPlanID == null) {            studentCurricularPlanID = (String) request.getAttribute("studentCPID");        }        Integer executionDegreeID = getExecutionDegree(request);        List result = null;        try {            Object args[] = { executionDegreeID, Integer.valueOf(studentCurricularPlanID) };            result = (ArrayList) ServiceManagerServiceFactory.executeService(userView,                    "ReadStudentCurriculum", args);        } catch (NotAuthorizedException e) {            return mapping.findForward("NotAuthorized");        }        // TODO Remove this exception! It returns null and it is not supposed!        catch (Exception exp) {            System.out.println(exp.getMessage());            return null;        }        BeanComparator courseName = new BeanComparator("infoCurricularCourse.name");        BeanComparator executionYear = new BeanComparator("infoExecutionPeriod.infoExecutionYear.year");        ComparatorChain chainComparator = new ComparatorChain();        chainComparator.addComparator(courseName);        chainComparator.addComparator(executionYear);        Collections.sort(result, chainComparator);        InfoStudentCurricularPlan infoStudentCurricularPlan = null;        try {            Object args[] = { Integer.valueOf(studentCurricularPlanID) };            infoStudentCurricularPlan = (InfoStudentCurricularPlan) ServiceManagerServiceFactory                    .executeService(userView, "ReadStudentCurricularPlan", args);        } catch (ExistingServiceException e) {            throw new ExistingActionException(e);        }        request.setAttribute(SessionConstants.CURRICULUM, result);        request.setAttribute(SessionConstants.STUDENT_CURRICULAR_PLAN, infoStudentCurricularPlan);        return mapping.findForward("ShowStudentCurriculum");    }