"/departmentAdmOffice/teacher/functionsManagement/chooseFunction.faces?personID=") .append(personID).append("&unitID=").append(parentUnit.getIdInternal()).append("&link=") .append(this.getLink()).append("\">").append(parentUnit.getName()).append("</a>").append( "</li>").append("<ul>");
"/departmentAdmOffice/functionsManagement/chooseFunction.faces?personID=").append( personID).append("&unitID=").append(parentUnit.getIdInternal()).append("&link=").append( this.getLink()).append("\">").append(parentUnit.getName()).append("</a>") .append("</li>").append("<ul>");
    private void getUnitsList(IUnit parentUnit, int index, StringBuffer buffer) {        buffer.append("<li>").append("<a href=\"").append(getContextPath()).append(                "/departmentAdmOffice/teacher/functionsManagement/chooseFunction.faces?personID=")                .append(personID).append("&unitID=").append(parentUnit.getIdInternal()).append("&link=")                .append(this.getLink()).append("\">").append(parentUnit.getName()).append("</a>").append(                        "</li>").append("<ul>");        for (IUnit subUnit : parentUnit.getAssociatedUnits()) {            getUnitsList(subUnit, index + 1, buffer);        }        buffer.append("</ul>");    }