code: function setDocument(doc, menuItemid) {
      let menuItem = itemsCache[menuItemid];
  
      if (!menuItem) {
          console.warn(`Cannot set document to the menuitem. The given id ${menuItemid} does not exist.`);
          return;
      }
      menuBarFeature.setDocument(doc, menuItem);
  }
docs: Associate a document to the menuitem (using the menuitem's unique id).
  
  @inner
  @alias module:menu.setDocument
  
  @param {Document} doc        	The document to associate with the menuitem
  @param {String} menuItemid		The id of the menu item as per the configuration