code: public ContextMenuItemState addChild(String itemCaption, String itemId) {
  
          ContextMenuItemState rootItem = new ContextMenuItemState();
          rootItem.setCaption(itemCaption);
          rootItem.setId(itemId);
  
          m_rootItems.add(rootItem);
  
          return rootItem;
      }
docs: Adds a child item.<p>
  
  @param itemCaption the caption
  @param itemId the id
  
  @return the item state