infoDegreeCurricularPlan.prepareEnglishPresentation(language);
    public ActionForward showCurricularPlan(ActionMapping mapping, ActionForm actionForm,            HttpServletRequest request, HttpServletResponse response) throws Exception {        ActionErrors errors = new ActionErrors();        Integer degreeId = getFromRequest("degreeID", request);        request.setAttribute("degreeID", degreeId);        Integer executionDegreeId = getFromRequest("executionDegreeID", request);        request.setAttribute("executionDegreeID", executionDegreeId);         String language = getLocaleLanguageFromRequest(request);                Integer degreeCurricularPlanId = getFromRequest("degreeCurricularPlanID", request);        request.setAttribute("degreeCurricularPlanID", degreeCurricularPlanId);        /** ************************************************* */        Object argsLerLicenciaturas[] = { degreeCurricularPlanId };        InfoExecutionDegree infoExecutionDegreeForPeriod = new InfoExecutionDegree();        List infoExecutionDegreeList = new ArrayList();        try {            infoExecutionDegreeList = (List) ServiceUtils.executeService(null,                    "ReadPublicExecutionDegreeByDCPID", argsLerLicenciaturas);        } catch (FenixServiceException e) {            throw new FenixActionException(e);        }        List executionPeriodsLabelValueList = new ArrayList();        InfoExecutionDegree infoExecutionDegree1 = (InfoExecutionDegree) infoExecutionDegreeList.get(0);              executionPeriodsLabelValueList.add(new LabelValueBean(infoExecutionDegree1                .getInfoExecutionYear().getYear(), ""                + infoExecutionDegree1.getInfoExecutionYear().getIdInternal()));        for (int i = 1; i < infoExecutionDegreeList.size(); i++) {            infoExecutionDegreeForPeriod = (InfoExecutionDegree) infoExecutionDegreeList.get(i);            if (infoExecutionDegreeForPeriod.getInfoExecutionYear().getYear() != infoExecutionDegree1                    .getInfoExecutionYear().getYear()) {                executionPeriodsLabelValueList.add(new LabelValueBean(infoExecutionDegreeForPeriod                        .getInfoExecutionYear().getYear(), ""                        + infoExecutionDegreeForPeriod.getInfoExecutionYear().getIdInternal()));                infoExecutionDegree1 = (InfoExecutionDegree) infoExecutionDegreeList.get(i);            }        }        //		  if (executionPeriodsLabelValueList.size() > 1) {        //			  request.setAttribute(SessionConstants.LABELLIST_EXECUTIONPERIOD,        //					  executionPeriodsLabelValueList);        //        //		  } else {        //			  request.removeAttribute(SessionConstants.LABELLIST_EXECUTIONPERIOD);        //		  }        request.setAttribute(SessionConstants.LABELLIST_EXECUTIONPERIOD, executionPeriodsLabelValueList);        /*------------------------------------*/        /* Criar o bean de anos curricutares */        List anosCurriculares = new ArrayList();        anosCurriculares.add(new LabelValueBean("---------", ""));        anosCurriculares.add(new LabelValueBean("1", "1"));        anosCurriculares.add(new LabelValueBean("2", "2"));        anosCurriculares.add(new LabelValueBean("3", "3"));        anosCurriculares.add(new LabelValueBean("4", "4"));        anosCurriculares.add(new LabelValueBean("5", "5"));        request.setAttribute("curricularYearList", anosCurriculares);        /* ------------------------------------ */        // If executionPeriod was previously selected,form has that value as        // default        DynaActionForm indexForm = (DynaActionForm) actionForm;        RequestUtils.getExecutionPeriodFromRequest(request);        InfoExecutionPeriod selectedExecutionPeriod = (InfoExecutionPeriod) request                .getAttribute(SessionConstants.EXECUTION_PERIOD);        Integer curricularYear = (Integer) indexForm.get("curYear");        if (curricularYear == null) {            curricularYear = new Integer(0);        }          if(indexForm.get("indice") == null){           indexForm.set("indice",infoExecutionDegreeForPeriod.getInfoExecutionYear().getIdInternal());             curricularYear = new Integer(0);          // selectedExecutionPeriod=null;       }               if (selectedExecutionPeriod != null) {                   indexForm.set("indice", indexForm.get("indice"));            indexForm.set("curYear", new Integer(anosCurriculares.indexOf(anosCurriculares                    .get(curricularYear.intValue()))));            request.setAttribute(SessionConstants.EXECUTION_PERIOD, selectedExecutionPeriod);            request.setAttribute(SessionConstants.EXECUTION_PERIOD_OID, selectedExecutionPeriod                    .getIdInternal().toString());        }        /** *************************************************** */        Integer executionPeriodOId = selectedExecutionPeriod.getIdInternal();        Boolean inEnglish = getFromRequestBoolean("inEnglish", request);        request.setAttribute("inEnglish", inEnglish);        List activeCurricularCourseScopes = null;        InfoExecutionDegree infoExecutionDegree = RequestUtils.getExecutionDegreeFromRequest(request,                selectedExecutionPeriod.getInfoExecutionYear());        if (infoExecutionDegree == null) {            infoExecutionDegree = new InfoExecutionDegree();            Object arg[] = { degreeCurricularPlanId,                    selectedExecutionPeriod.getInfoExecutionYear().getIdInternal() };            try {                infoExecutionDegree = (InfoExecutionDegree) ServiceUtils.executeService(null,                        "ReadPublicExecutionDegreeByDCPID", arg);            } catch (FenixServiceException e) {                throw new FenixActionException(e);            }        }        RequestUtils.setExecutionDegreeToRequest(request, infoExecutionDegree);        InfoExecutionCourse executionCourse = new InfoExecutionCourse();        executionCourse.setInfoExecutionPeriod(selectedExecutionPeriod);        if (curricularYear.intValue() != 0) {            Object[] args = { infoExecutionDegree, selectedExecutionPeriod, curricularYear ,language};            try {                activeCurricularCourseScopes = (List) ServiceManagerServiceFactory.executeService(null,                        "ReadActiveDegreeCurricularPlanByID", args);            } catch (FenixServiceException e) {                errors                        .add("impossibleCurricularPlan", new ActionError(                                "error.impossibleCurricularPlan"));                saveErrors(request, errors);                return (new ActionForward(mapping.getInput()));            }        } else {            Object[] args = { degreeCurricularPlanId, executionPeriodOId ,language,""};            try {                activeCurricularCourseScopes = (List) ServiceManagerServiceFactory.executeService(null,                        "ReadActiveDegreeCurricularPlanByID", args);            } catch (FenixServiceException e) {                errors                        .add("impossibleCurricularPlan", new ActionError(                                "error.impossibleCurricularPlan"));                saveErrors(request, errors);                return (new ActionForward(mapping.getInput()));            }        }        if (activeCurricularCourseScopes == null || activeCurricularCourseScopes.size() <= 0) {            errors.add("noDegreeCurricularPlan", new ActionError("error.impossibleCurricularPlan"));            saveErrors(request, errors);        }        InfoDegreeCurricularPlan infoDegreeCurricularPlan = ((InfoCurricularCourseScope) ((List) activeCurricularCourseScopes.get(0)).get(0)).getInfoCurricularCourse().getInfoDegreeCurricularPlan();        infoDegreeCurricularPlan.prepareEnglishPresentation(language);                infoExecutionDegree1.setInfoDegreeCurricularPlan(infoDegreeCurricularPlan);                    request.setAttribute("infoDegreeCurricularPlan", infoDegreeCurricularPlan);        request.setAttribute("allActiveCurricularCourseScopes", activeCurricularCourseScopes);            return mapping.findForward("showDegreeCurricularPlan");    }