for (final IUnit competenceCourseGroupUnit : scientificAreaUnit .getCompetenceCourseGroupUnits()) { for (final ICompetenceCourse competenceCourse : competenceCourseGroupUnit .getCompetenceCourses()) { result.add(new SelectItem(competenceCourse.getIdInternal(), competenceCourse .getName()));
for (final IUnit competenceCourseGroupUnit : scientificAreaUnit.getCompetenceCourseGroupUnits()) { for (final ICompetenceCourse competenceCourse : competenceCourseGroupUnit.getCompetenceCourses()) { if (!competenceCourse.getCurricularStage().equals(CurricularStage.DRAFT)) { result.add(new SelectItem(competenceCourse.getIdInternal(), competenceCourse.getName())); }
    private List<SelectItem> readCompetenceCourses() throws FenixFilterException, FenixServiceException {        final List<SelectItem> result = new ArrayList<SelectItem>();        result.add(new SelectItem(Integer.valueOf(0), "[" + messages.getString("chooseOneType") + "]"));        final IUnit departmentUnit = getDepartmentUnit();        if (departmentUnit != null) {            for (final IUnit scientificAreaUnit : departmentUnit.getScientificAreaUnits()) {                for (final IUnit competenceCourseGroupUnit : scientificAreaUnit                        .getCompetenceCourseGroupUnits()) {                    for (final ICompetenceCourse competenceCourse : competenceCourseGroupUnit                            .getCompetenceCourses()) {                        result.add(new SelectItem(competenceCourse.getIdInternal(), competenceCourse                                .getName()));                    }                }            }        }        return result;    }