CompetenceCourseMembersGroup competenceCourseMembersGroup = getDepartment() .getCompetenceCourseMembersGroup(); if (competenceCourseMembersGroup != null) { for (Group member : competenceCourseMembersGroup.getChildren()) { Person person = ((PersonGroup) member).getPerson(); result.add(new SelectItem(person.getIdInternal(), person.getNome() + " (" + person.getUsername() + ")"));
Group competenceCoursesManagementGroup = getDepartment().getCompetenceCourseMembersGroup(); if (competenceCoursesManagementGroup != null) { Iterator<Person> personIterator = competenceCoursesManagementGroup.getElementsIterator();  while (personIterator.hasNext()) { Person person = personIterator.next(); result.add(new SelectItem(person.getIdInternal(), person.getNome() + " (" + person.getUsername() + ")"));
    public List<SelectItem> getSelectedDepartmentEmployeesSelectItems() throws FenixFilterException,            FenixServiceException {        List<SelectItem> result = new ArrayList<SelectItem>();        CompetenceCourseMembersGroup competenceCourseMembersGroup = getDepartment()                .getCompetenceCourseMembersGroup();        if (competenceCourseMembersGroup != null) {            for (Group member : competenceCourseMembersGroup.getChildren()) {                Person person = ((PersonGroup) member).getPerson();                result.add(new SelectItem(person.getIdInternal(), person.getNome() + " ("                        + person.getUsername() + ")"));            }        }        return result;    }