code: public CmsListItemWidget addEntry(CmsPublishResource res) {
  
          final CmsListItemWidget itemWidget = CmsPublishGroupPanel.createListItemWidget(res, SLOT_MAPPING);
          CmsTreeItem item = new CmsTreeItem(false, itemWidget);
  
          item.setOpen(true);
          for (CmsPublishResource subRes : res.getRelated()) {
              final CmsListItemWidget subWidget = CmsPublishGroupPanel.createListItemWidget(subRes, SLOT_MAPPING);
              CmsTreeItem subItem = new CmsTreeItem(false, subWidget);
              item.addChild(subItem);
          }
          m_list.addItem(item);
          m_scrollPanel.onResizeDescendant();
          return itemWidget;
      }
docs: Adds a resource bean to be displayed.<p>
  
  @param res a resource bean
  @return the list item widget of the created entry