List<Department> allDepartments = readAllDomainObjects(Department.class);
List<Department> allDepartments = rootDomainObject.getDepartments();
    public List<SelectItem> getDepartments() throws FenixFilterException, FenixServiceException {        List<SelectItem> list = new ArrayList<SelectItem>();        SelectItem selectItem = null;        List<Department> allDepartments = readAllDomainObjects(Department.class);        for (Department department : allDepartments) {            selectItem = new SelectItem();            selectItem.setLabel(department.getRealName());            selectItem.setValue(department.getIdInternal().toString());            list.add(selectItem);        }        Collections.sort(list, new BeanComparator("label"));        ResourceBundle bundle = getResourceBundle("resources/EnumerationResources");        addDefaultSelectedItem(list, bundle);        return list;    }