public static IMenuComponent getMenu(UIComponent component, String menuId) { return searchMenu(component, menuId);
public static IMenuComponent getMenu(MenuItemComponent item) { for (;;) { UIComponent component = item.getParent(); if (component == null) { return null; }  if (component instanceof MenuComponent) { return (MenuComponent) component; }  if ((component instanceof MenuItemComponent) == false) { return null; }  item = (MenuItemComponent) component; }
    public static IMenuComponent getMenu(UIComponent component, String menuId) {        return searchMenu(component, menuId);    }