if (!function.isInherentFunction()) {
if (!function.isInherentFunction() && ((this.getListingTypeValueToFunctionsHidden().getValue().toString().equals("0") && function .isActive(currentDate)) || (this.getListingTypeValueToFunctionsHidden() .getValue().toString().equals("1") && !function.isActive(currentDate)))) {
    public List<IFunction> getAllNonInherentFunctions() throws FenixFilterException,            FenixServiceException {        List<IFunction> allNonInherentFunctions = new ArrayList<IFunction>();        for (IFunction function : this.getUnit().getFunctions()) {            if (!function.isInherentFunction()) {                allNonInherentFunctions.add(function);            }        }        return allNonInherentFunctions;    }