public void doRenderCloseResponse(VolantisProtocol protocol,
MCSAttributes attributes) throws ProtocolException {
renderWidgetClose(protocol, listAttributes);
ResponseDeckAttributes responseDeckAttributes = (ResponseDeckAttributes) attributes;
StringBuffer buffer = new StringBuffer();
if (attributes.getId() != null) {
buffer.append(createJavaScriptWidgetRegistrationOpening(attributes.getId()));
addCreatedWidgetId(attributes.getId());
}
buffer.append("new Widget.Internal.DeckResponse(")
.append(createJavaScriptWidgetReference(listAttributes.getId()))
.append(", ")
.append(responseDeckAttributes.getPagesCount())
.append(")");
addUsedWidgetId(listAttributes.getId());
if (attributes.getId() != null) {