selectItem = new SelectItem(); selectItem.setLabel(bundle.getString(type.getName())); selectItem.setValue(type.getName()); list.add(selectItem);
if (!type.equals(AccountabilityTypeEnum.EMPLOYEE_CONTRACT) && !type.equals(AccountabilityTypeEnum.MANAGEMENT_FUNCTION)) { selectItem = new SelectItem(); selectItem.setLabel(bundle.getString(type.getName())); selectItem.setValue(type.getName()); list.add(selectItem); }
    public List<SelectItem> getUnitRelationTypes() {	List<SelectItem> list = new ArrayList<SelectItem>();	ResourceBundle bundle = getResourceBundle("resources/EnumerationResources");	SelectItem selectItem = null;	for (AccountabilityTypeEnum type : AccountabilityTypeEnum.values()) {	    selectItem = new SelectItem();	    selectItem.setLabel(bundle.getString(type.getName()));	    selectItem.setValue(type.getName());	    list.add(selectItem);	}	Collections.sort(list, new BeanComparator("label"));	addDefaultSelectedItem(list, bundle);	return list;    }