// If a menu is completed (i.e. this is not nested) then need to
// process it and output against specific renderer and markup.
if (menu != null) {
// Obtain a suitable renderer
MenuRendererSelectorLocator rendererLocator =
pageContext.getRendererLocator();
MenuRendererSelector rendererSelector =
rendererLocator.getMenuRendererSelector(pageContext);
if (rendererSelector == null) {
logger.error("selector-rendering-error", "menu");
throw new PAPIException(exceptionLocalizer.format(
"missing-renderer-selector", "menu"));
}