class OfficeListTag extends BodyTagSupport {

    XmlBuilder getLink(Short officeId, String officeName) {
        String urlencodedOfficeName = URLEncoder.encode(officeName);
        XmlBuilder builder = new XmlBuilder();
        String url = (actionName + "?method=" + methodName + "&office.officeId=" + officeId + "&office.officeName="
                + urlencodedOfficeName + "&officeId=" + officeId + "&officeName=" + urlencodedOfficeName
                + "&currentFlowKey=" + flowKey);
        builder.startTag("a", "href", url);
        builder.text(officeName);
        builder.endTag("a");
        return builder;
    }

    public  OfficeListTag();
    public  OfficeListTag(String action, String method, String flow);

}