if (!function.isInherentFunction()) {
if (!function.isInherentFunction() && ((this.getPersonFunction() != null && function.equals(this.getPersonFunction() .getFunction())) || function.isActive(Calendar.getInstance().getTime()))) {
    public List<SelectItem> getValidFunctions() throws FenixFilterException, FenixServiceException {        List<SelectItem> list = new ArrayList<SelectItem>();        SelectItem selectItem = null;        for (IFunction function : this.getUnit().getFunctions()) {            if (!function.isInherentFunction()) {                selectItem = new SelectItem();                selectItem.setValue(function.getIdInternal());                selectItem.setLabel(function.getName());                list.add(selectItem);            }        }        Collections.sort(list, new BeanComparator("label"));        this.numberOfFunctions = list.size();        return list;    }