// anything.
if (!isWidgetSupported(protocol)) {
return;
}
LogAttributes logAttributes = (LogAttributes) attributes;
// Close DIV element, which was opened in renderOpen().
closeDivElement(getCurrentBuffer(protocol));
// Write the script
StringWriter scriptWriter = new StringWriter();
scriptWriter.write("new Widget.Log({id:" + createJavaScriptString(logAttributes.getId()));
if (logAttributes.getTopics() != null) {
scriptWriter.write(",topics:" + createJavaScriptString(logAttributes.getTopics()));
}
scriptWriter.write("})");
try {