// Render the children of the menu. Note that this avoids visiting the
// menu being rendered, which means that when a menu is visited in the
// visitor below, we know it must be a sub-menu. This makes things a
// little bit clearer.
rendererVisitor.renderChildren(menu);
if (buffer != null) {
// Only close markup that was opened above
menuBracketingRenderer.close(buffer, menu);
}