protected boolean shouldBeRendered(FacesContext context, MenuItemAware abstractMenu) {
        return abstractMenu.getElements().stream().anyMatch(me -> shouldBeRendered(context, me));
    }
Decode menu item not present in Faces tree but added using model attribute.
ID is in format UUID|COORDS.

@param context the FacesContext
@param component the menu component
@return true if a menu item has been decoded, otherwise false
primefaces/src/main/java/org/primefaces/renderkit/MenuItemAwareRenderer.java