String degreeType = this.getResources(request, "ENUMERATION_RESOURCES").getMessage( infoExecutionDegree.getInfoDegreeCurricularPlan().getInfoDegree().getTipoCurso() .name());
InfoDegreeCurricularPlan infoDegreeCurricularPlan = infoExecutionDegree.getInfoDegreeCurricularPlan(); InfoDegree infoDegree = infoDegreeCurricularPlan.getInfoDegree(); DegreeType degreeTypeEnum = infoDegree.getTipoCurso(); MessageResources messageResources = this.getResources(request, "ENUMERATION_RESOURCES"); String degreeType = messageResources.getMessage(degreeTypeEnum.name());
    private List buildExecutionDegreeLabelValueBean(List executionDegreeList, HttpServletRequest request) {        List executionDegreeLabels = new ArrayList();        Iterator iterator = executionDegreeList.iterator();        while (iterator.hasNext()) {            InfoExecutionDegree infoExecutionDegree = (InfoExecutionDegree) iterator.next();            String name = infoExecutionDegree.getInfoDegreeCurricularPlan().getInfoDegree().getNome();            String degreeType = this.getResources(request, "ENUMERATION_RESOURCES").getMessage(                    infoExecutionDegree.getInfoDegreeCurricularPlan().getInfoDegree().getTipoCurso()                            .name());            name = degreeType + " em " + name;            name += duplicateInfoDegree(executionDegreeList, infoExecutionDegree) ? "-"                    + infoExecutionDegree.getInfoDegreeCurricularPlan().getName() : "";            executionDegreeLabels.add(new LabelValueBean(name, name + ">"                    + infoExecutionDegree.getIdInternal().toString()));        }        return executionDegreeLabels;    }