Added the isVisible attribute to the MenuItemWrapper and made some of its methods static.