code: public CmsSitemapTreeItem createSitemapItem(CmsClientSitemapEntry entry) {
  
          CmsSitemapTreeItem result = create(entry);
          result.clearChildren();
          for (CmsClientSitemapEntry child : entry.getSubEntries()) {
              CmsSitemapTreeItem childItem = createSitemapItem(child);
              if (!entry.isSubSitemapType()) {
                  result.addChild(childItem);
              }
          }
          if (entry.getChildrenLoadedInitially()) {
              result.onFinishLoading();
          }
          return result;
      }
docs: Creates a sitemap tree item from a client sitemap entry.<p>
  
  @param entry the entry from which the sitemap tree item should be created
  
  @return the new sitemap tree item