getUnitsListToChoosePrincipalFunction(subUnit, index + 1, buffer);
getUnitsListToChoosePrincipalFunction(subUnit, buffer);
    private void getUnitsListToChoosePrincipalFunction(IUnit parentUnit, int index, StringBuffer buffer)            throws FenixFilterException, FenixServiceException {        buffer.append("<li>").append("<a href=\"").append(getContextPath()).append(                "/manager/organizationalStructureManagament/").append("chooseFunction.faces?").append(                "unitID=").append(this.getUnit().getIdInternal()).append("&chooseUnitID=").append(                parentUnit.getIdInternal()).append("&functionID=").append(                this.getFunction().getIdInternal()).append("\">").append(parentUnit.getName()).append(                "</a>").append("</li>").append("<ul>");        for (IUnit subUnit : parentUnit.getSubUnits()) {            getUnitsListToChoosePrincipalFunction(subUnit, index + 1, buffer);        }        buffer.append("</ul>");    }