ShardLinkMenu menu = builder.buildShardLinkMenuModel(attributes);
// Render the shard link menu.
MenuRenderer menuRenderer = getShardLinkMenuModule().
getMenuRendererSelector().selectMenuRenderer(menu);
menuRenderer.render(menu);
} catch (RendererException e) {
throw new ProtocolException(e.getMessage(), e);
}
context.popOutputBuffer(dom);