"ReadClassesByStudentID", args);
"ReadClassesByStudentID", args);  if(infoClassList == null || infoClassList.isEmpty()){ return mapping.findForward("prepareShiftEnrollment"); }
    public ActionForward proceedToShiftEnrolment(ActionMapping mapping, ActionForm form,            HttpServletRequest request, HttpServletResponse response) throws FenixFilterException,            FenixServiceException {        checkParameter(request);        HttpSession session = request.getSession();        IUserView userView = (IUserView) session.getAttribute(SessionConstants.U_VIEW);        Integer classIdSelected = readClassSelected(request);                Integer studentId = Integer.valueOf((String)request.getParameter("studentId"));        Integer executionCourseID = null;         String executionCourseIDString = request.getParameter("executionCourseID");        if ( executionCourseIDString != null && !executionCourseIDString.equals("")){            executionCourseID = Integer.valueOf(executionCourseIDString);            request.setAttribute("executionCourseID",executionCourseID.toString());            InfoExecutionCourse infoExecutionCourse = (InfoExecutionCourse) ServiceManagerServiceFactory                    .executeService(userView, "ReadExecutionCourseByOID",                            new Object[] { executionCourseID });            request.setAttribute("infoExecutionCourse", infoExecutionCourse);        }        if(studentId == null){            studentId = (Integer) request.getAttribute("studentId");        }        request.setAttribute("studentId", studentId);                        Object[] args = { studentId, executionCourseID };        List infoClassList = (List) ServiceManagerServiceFactory.executeService(userView,                "ReadClassesByStudentID", args);                request.setAttribute("infoClassList", infoClassList);                Integer tempClassId = null;        if (classIdSelected != null) {            tempClassId = classIdSelected;                    } else {            tempClassId = ((InfoClass) infoClassList.get(0))                    .getIdInternal();                    }        request.setAttribute("classId", tempClassId);        final Integer classId = tempClassId;        List selectedClasses = (List) CollectionUtils.select(infoClassList, new Predicate() {            public boolean evaluate(Object arg0) {                InfoClass infoClass = (InfoClass) arg0;                return infoClass.getIdInternal().equals(classId);            }        });        InfoClass infoClass = (InfoClass) selectedClasses.get(0);        request.setAttribute("infoClass", infoClass);                                Object[] args1 = { userView.getUtilizador(), classId, executionCourseID };        List infoClasslessons = (List) ServiceManagerServiceFactory.executeService(userView,                "ReadClassTimeTableByStudent", args1);                request.setAttribute("infoClasslessons", infoClasslessons);        Object[] args2 = { userView.getUtilizador() };        List infoLessons = (List) ServiceManagerServiceFactory.executeService(userView,                "ReadStudentTimeTable", args2);        request.setAttribute("infoLessons", infoLessons);        return mapping.findForward("showShiftsToEnroll");    }