.buildExecutionDegreeLabelValueBean(executionDegreeList, messageResources);
.buildExecutionDegreeLabelValueBean(executionDegreeList, messageResources, request);
    public ActionForward prepareEnrollmentCourses(ActionMapping mapping, ActionForm form,            HttpServletRequest request, HttpServletResponse response) throws Exception {        ActionErrors errors = new ActionErrors();        HttpSession session = request.getSession();        IUserView userView = (IUserView) session.getAttribute(SessionConstants.U_VIEW);        DynaActionForm prepareEnrolmentForm = (DynaActionForm) form;        Integer studentNumber = Integer.valueOf((String) prepareEnrolmentForm.get("studentNumber"));        InfoStudent infoStudent = new InfoStudent();        infoStudent.setNumber(studentNumber);        String executionPeriodID = (String) prepareEnrolmentForm.get("executionPeriod");        String studentCurricularPlan = (String) prepareEnrolmentForm.get("studentCurricularPlan");        /*InfoExecutionYear infoExecutionYear = new InfoExecutionYear();        infoExecutionYear.setYear(executionYear);*/        String degreeTypeCode = (String) prepareEnrolmentForm.get("degreeType");        DegreeType degreeType = DegreeType.valueOf(degreeTypeCode);        String executionDegreeString = (String) prepareEnrolmentForm.get("executionDegree");        Integer executionDegreeId = null;        if (executionDegreeString != null && executionDegreeString.length() > 0) {            executionDegreeId = Integer.valueOf((String) prepareEnrolmentForm.get("executionDegree"));        }        //read execution degrees        Object args[] = { infoStudent, degreeType, executionDegreeId, new Integer(executionPeriodID) };        List executionDegreeList = null;        InfoExecutionDegree infoExecutionDegreeSelected = null;        try {                        //get InfoStudent with InfoPerson to mantain context            Object argsStudent[] = {studentNumber, degreeType};            infoStudent = (InfoStudent) ServiceManagerServiceFactory.executeService(userView, "ReadStudentByNumberAndDegreeType", argsStudent);            if (infoStudent == null) {                throw new FenixServiceException();            }                        // it is return a list where the first element is the degree            // pre-select and the tail is all            // degrees            executionDegreeList = (List) ServiceManagerServiceFactory.executeService(userView,                    "PrepareDegreesListByStudentNumber", args);            if (executionDegreeList == null || executionDegreeList.size() < 0) {                throw new FenixServiceException();            }        } catch (FenixServiceException e) {            errors.add("impossibleOperation", new ActionError("error.impossible.operations"));            saveErrors(request, errors);            return mapping.findForward("readCurricularCourseEnrollmentList");        }        infoExecutionDegreeSelected = (InfoExecutionDegree) executionDegreeList.get(0);        executionDegreeList.remove(0);        Collections.sort(executionDegreeList, new ComparatorByNameForInfoExecutionDegree());                MessageResources messageResources = this.getResources(request, "ENUMERATION_RESOURCES");                List executionDegreeLabels = ExecutionDegreesFormat                .buildExecutionDegreeLabelValueBean(executionDegreeList, messageResources);        request.setAttribute(SessionConstants.DEGREE_LIST, executionDegreeLabels);        //read all curricular years and semester        List listOfChosenCurricularYears = getListOfChosenCurricularYears();        List listOfChosenCurricularSemesters = getListOfChosenCurricularSemesters();        request.setAttribute(SessionConstants.ENROLMENT_YEAR_LIST_KEY, listOfChosenCurricularYears);        request.setAttribute(SessionConstants.ENROLMENT_SEMESTER_LIST_KEY,                listOfChosenCurricularSemesters);        //maintenance of the form        DynaActionForm enrollForm = (DynaActionForm) form;        enrollForm.set("studentNumber", studentNumber.toString());        enrollForm.set("executionPeriod", executionPeriodID);        enrollForm.set("degreeType", degreeTypeCode);        enrollForm.set("executionDegree", infoExecutionDegreeSelected.getIdInternal().toString());        //maintenance of the Context with the student's number and name and        // execution year        InfoStudentEnrollmentContext infoStudentEnrolmentContext = maintenanceContext(infoStudent,                infoExecutionDegreeSelected.getInfoExecutionYear(), studentCurricularPlan);        request.setAttribute("infoStudentEnrolmentContext", infoStudentEnrolmentContext);        return mapping.findForward("choosesForEnrollment");    }