final Object[] argsToRead = { Unit.class };  List<IUnit> allUnits = new ArrayList<IUnit>(); allUnits.addAll((List<IUnit>) ServiceUtils.executeService(null, "ReadAllDomainObject", argsToRead));
List<IUnit> allUnits = readAllDomainObjects(Unit.class);
    public String getUnits() throws FenixFilterException, FenixServiceException {        StringBuffer buffer = new StringBuffer();        final Object[] argsToRead = { Unit.class };        List<IUnit> allUnits = new ArrayList<IUnit>();        allUnits.addAll((List<IUnit>) ServiceUtils.executeService(null, "ReadAllDomainObject",                argsToRead));        Date currentDate = Calendar.getInstance().getTime();        for (IUnit unit : allUnits) {            if (unit.getParentUnits().isEmpty() && unit.isActive(currentDate)) {                getUnitTree(buffer, unit);            }        }        return buffer.toString();    }