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