code: public String getName() {
      if (isSeparator()) {
        return "Separator";
      }
      if (getActionName().length() > 0) {
        if (getActionParameter() != null && getActionParameter().length() > 0) {
          return getActionName() + ", " + getActionParameter();
        } else {
          return getActionName();
        }
      } else {
        return this.getSubMenu();
      }
    }
docs: Get name of the menu. This is a constructed name, it is either - for items with an action, its
  action - for items with an action that has a parameter (such as Open link, 'bookmarkurl')
  "action, parameter" - for items that opens a submenu, its submenuname - for separators,
  'Separator'
  
  @return name of menuItem