List<Degree> allDegrees = readAllDomainObjects(Degree.class);
List<Degree> allDegrees = rootDomainObject.getDegrees();
    public List<SelectItem> getDegrees() throws FenixFilterException, FenixServiceException {        List<SelectItem> list = new ArrayList<SelectItem>();        SelectItem selectItem = null;        List<Degree> allDegrees = readAllDomainObjects(Degree.class);        for (Degree degree : allDegrees) {            selectItem = new SelectItem();            if (degree.getTipoCurso() != null) {                if (degree.getTipoCurso().equals(DegreeType.DEGREE)) {                    selectItem.setLabel("(L) " + degree.getNome());                } else if (degree.getTipoCurso().equals(DegreeType.MASTER_DEGREE)) {                    selectItem.setLabel("(M) " + degree.getNome());                }            } else if (degree.getBolonhaDegreeType() != null) {                if (degree.getBolonhaDegreeType().equals(BolonhaDegreeType.DEGREE)) {                    selectItem.setLabel("(L) " + degree.getNome());                } else if (degree.getBolonhaDegreeType().equals(BolonhaDegreeType.MASTER_DEGREE)) {                    selectItem.setLabel("(M) " + degree.getNome());                } else if (degree.getBolonhaDegreeType().equals(                        BolonhaDegreeType.INTEGRATED_MASTER_DEGREE)) {                    selectItem.setLabel("(MI) " + degree.getNome());                }            }            selectItem.setValue(degree.getIdInternal().toString());            list.add(selectItem);        }        Collections.sort(list, new BeanComparator("label"));        ResourceBundle bundle = getResourceBundle("resources/EnumerationResources");        addDefaultSelectedItem(list, bundle);        return list;    }