code: protected CmsLazyTreeItem createItem(final CmsSitemapEntryBean sitemapEntry) {
  
          CmsDataValue dataValue = new CmsDataValue(
              600,
              3,
              sitemapEntry.getSmallIconClasses(),
              sitemapEntry.getDisplayName());
          dataValue.setUnselectable();
          if (sitemapEntry.isHiddenEntry()) {
              dataValue.setColor("#aaaaaa");
          }
          dataValue.setSearchMatch(sitemapEntry.isSearchMatch());
  
          CmsLazyTreeItem result = new CmsLazyTreeItem(dataValue, true);
          result.setData(sitemapEntry);
          if (getTabHandler().hasSelectResource()) {
              dataValue.addButton(
                  createSelectResourceButton(
                      m_handler.getSelectPath(sitemapEntry),
                      sitemapEntry.getStructureId(),
                      sitemapEntry.getDisplayName(),
                      sitemapEntry.getType()));
          }
          result.setLeafStyle(!sitemapEntry.isFolder());
          result.setSmallView(true);
          if (sitemapEntry.hasChildren()) {
              for (CmsSitemapEntryBean child : sitemapEntry.getChildren()) {
                  result.addChild(createItem(child));
              }
              result.setOpen(true, false);
              result.onFinishLoading();
          }
          if ((sitemapEntry.getChildren() != null) && sitemapEntry.getChildren().isEmpty()) {
              result.setLeafStyle(true);
          }
          m_items.add(result);
          dataValue.addClickHandler(new ClickHandler() {
  
              public void onClick(ClickEvent e) {
  
                  if (getTabHandler().hasSelectResource()) {
                      getTabHandler().selectResource(
                          m_handler.getSelectPath(sitemapEntry),
                          sitemapEntry.getStructureId(),
                          sitemapEntry.getDisplayName(),
                          sitemapEntry.getType());
                  }
              }
          });
          return result;
      }
docs: Helper method for creating a VFS tree item widget from a VFS entry bean.<p>
  
  @param sitemapEntry the VFS entry bean
  
  @return the tree item widget