String selectedDegreeType) throws FenixFilterException, FenixServiceException {
String selectedDegreeType) {
    private List<SelectItem> readBolonhaDegrees(String selectedCurricularRuleType,            String selectedDegreeType) throws FenixFilterException, FenixServiceException {        final List<SelectItem> result = new ArrayList<SelectItem>();        if (selectedCurricularRuleType != null                && selectedCurricularRuleType.equals(CurricularRuleType.ANY_CURRICULAR_COURSE.name())) {                        final List<Degree> allDegrees = (List<Degree>) readAllDomainObjects(Degree.class);            final BolonhaDegreeType bolonhaDegreeType = (selectedDegreeType == null || selectedDegreeType                    .equals(NO_SELECTION_STRING)) ? null : BolonhaDegreeType.valueOf(selectedDegreeType);            for (final Degree degree : allDegrees) {                if (degree.isBolonhaDegree()                        && (bolonhaDegreeType == null || degree.getBolonhaDegreeType() == bolonhaDegreeType)) {                    result.add(new SelectItem(degree.getIdInternal(), "["                            + enumerationResources.getString(degree.getBolonhaDegreeType().name()) + "] "                            + degree.getNome()));                }            }            Collections.sort(result, new BeanComparator("label"));        }        result.add(0, new SelectItem(NO_SELECTION_INTEGER, bolonhaResources.getString("any.one")));        return result;    }