Date currentDate = Calendar.getInstance().getTime();
    public String getUnits() throws FenixFilterException, FenixServiceException {        StringBuffer buffer = new StringBuffer();        List<IUnit> allUnits = readAllDomainObjects(Unit.class);        Date currentDate = Calendar.getInstance().getTime();        for (IUnit unit : allUnits) {            if (unit.getParentUnits().isEmpty() && unit.isActive(currentDate)) {                getUnitTree(buffer, unit);            }        }        return buffer.toString();    }