}
// Require script module
require(WIDGET_TICKER, protocol, attributes);
FeedPollerAttributes feedPollerAttributes = (FeedPollerAttributes) attributes;
// Prepare Javascript content.
StringWriter scriptWriter = new StringWriter();
scriptWriter.write("Ticker.createFeedPoller({");
scriptWriter.write("url:" + createJavaScriptString(feedPollerAttributes.getUrl()));
if (feedPollerAttributes.getMinPollingInterval() != null)
scriptWriter.write(", minPollingInterval:" + feedPollerAttributes.getMinPollingInterval());
if (feedPollerAttributes.getMaxPollingInterval() != null)
scriptWriter.write(", maxPollingInterval:" + feedPollerAttributes.getMaxPollingInterval());
scriptWriter.write("})");
addCreatedWidgetId(protocol.getMarinerPageContext().generateFCID(FEED_POLLER_ID_SUFFIX));