addTabAnchors(arguments, element, tabContainerId);
// Build javascript code
StringBuilder sb = new StringBuilder();
sb.append("$(\"#").append(tabContainerId).append("\").tabs(); \n");
// Select one tab if required
IWebContext context = (IWebContext) arguments.getContext();
if (context.getRequestParameters().get(TAB_PARAM) != null) {
String tabId = context.getRequestParameters().get(TAB_PARAM)[0];
sb.append("$(\"#").append(tabContainerId).append("\").tabs('select', '").append(tabId).append("');\n");
}
// Add javascript code to document
JavaScriptComposer.addOnDocumentReady(arguments.getDocument(), sb.toString());
}