// anything.
if (!isWidgetSupported(protocol)) {
return;
}
JavaScriptObjectAttributes mapAttributes = (JavaScriptObjectAttributes) attributes;
StringBuffer buffer = new StringBuffer();
if (attributes.getId() != null) {
buffer.append(createJavaScriptWidgetRegistrationOpening(attributes.getId()));
addCreatedWidgetId(attributes.getId());
}
buffer.append("{");
Map map = mapAttributes.getWidgetsMap();
Iterator iterator = map.keySet().iterator();
while (iterator.hasNext()) {
String name = (String) iterator.next();