return;
}
protocol.writeCloseSpan(spanAttributes);
ChannelsCountAttributes channelsCountAttributes = (ChannelsCountAttributes) attributes;
// Prepare Javascript content.
StringWriter scriptWriter = new StringWriter();
// Finally, render the JavaScript part.
scriptWriter.write("Ticker.createChannelsCount({");
scriptWriter.write("id:" + createJavaScriptString(spanAttributes.getId()));
if (channelsCountAttributes.getRead() != null) {
scriptWriter.write(",read:" + (channelsCountAttributes.getRead().equals("no") ? "false" : "true"));
}
if (channelsCountAttributes.getFollowed() != null) {
scriptWriter.write(",followed:" + (channelsCountAttributes.getFollowed().equals("no") ? "false" : "true"));
}
scriptWriter.write("})");
addUsedFeedPollerId(protocol);