// 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);
/*
todo: delete when we clean up all the old menu code.