public static ApplicationMenuItem GetMenuItem(this IHasMenuItems menuWithItems, string menuItemName)
        {
            var menuItem = menuWithItems.GetMenuItemOrNull(menuItemName);

            if (menuItem == null)
            {
                throw new AbpException($"Could not find a menu item with given name: {menuItemName}");
            }

            return(menuItem);
        }
        public static IHasMenuItems SetSubItemOrder(
            [NotNull] this IHasMenuItems menuWithItems,
            string menuItemName,
            int order)
        {
            Check.NotNull(menuWithItems, nameof(menuWithItems));

            var menuItem = menuWithItems.GetMenuItemOrNull(menuItemName);

            if (menuItem != null)
            {
                menuItem.Order = order;
            }

            return(menuWithItems);
        }