code: private JMenu getSuperMenu (String name, int index) {
  		JMenu superMenu = superMenus.get(name);
  		if (superMenu == null) {
  			// Use an ExtensionPopupMenu so child menus are dismissed
  			superMenu = new ExtensionPopupMenu(name) {
  
  				private static final long serialVersionUID = 6825880451078204378L;
  
  				@Override
  				public boolean isEnableForComponent(Component invoker) {
  					return true;
  				}
  			};
  			superMenus.put(name, superMenu);
  			addMenuItem(superMenu, index);
  		}
  		return superMenu;
  		
  	}
docs: ZAP: Added support for submenus