doRenderCloseResponse(protocol, attributes);
if (rendersJSON()) {
// Do nothing, if JSON only was rendered.
} else {
ResponseClientAttributes responseClientAttributes = new ResponseClientAttributes();
responseClientAttributes.setContent(attributes.getId());
renderWidgetOpen(protocol, responseClientAttributes);
renderWidgetClose(protocol, responseClientAttributes);
}