} else if (this.getListingTypeValueToUnits().equals("1")
} else if (this.getListingTypeValueToUnitsHidden().getValue().toString().equals("1")
    public String getUnits() throws FenixFilterException, FenixServiceException {        StringBuffer buffer = new StringBuffer();        List<IUnit> allUnitsWithoutParent = getAllUnitsWithoutParent();        Collections.sort(allUnitsWithoutParent, new BeanComparator("name"));        Date currentDate = Calendar.getInstance().getTime();        for (IUnit unit : allUnitsWithoutParent) {            if (this.getListingTypeValueToUnits().equals("0")                    && (unit.isActive(currentDate) || !unit.getActiveSubUnits(currentDate).isEmpty())) {                getUnitTree(buffer, unit, unit.getActiveSubUnits(currentDate), currentDate, true);            } else if (this.getListingTypeValueToUnits().equals("1")                    && (!unit.isActive(currentDate) || !unit.getInactiveSubUnits(currentDate).isEmpty())) {                getUnitTree(buffer, unit, unit.getInactiveSubUnits(currentDate), currentDate, false);            }        }        return buffer.toString();    }