code: protected void initTree(CmsResource rootRes) throws CmsException {
  
          m_currentRoot = rootRes;
          m_treeContainer.removeAllComponents();
          showHeader();
          CmsSitemapTreeController controller = new CmsSitemapTreeController(
              A_CmsUI.getCmsObject(),
              rootRes,
              this,
              m_treeContainer);
  
          // no need to escape a structure id
          JavaScript.eval(CmsGwtConstants.VAR_LOCALE_ROOT + "='" + rootRes.getStructureId() + "'");
  
          CmsSitemapUI ui = (CmsSitemapUI)(A_CmsUI.get());
          ui.getSitemapExtension().setSitemapTreeController(controller);
          CmsSitemapTreeNode root1 = controller.createRootNode();
          controller.initEventHandlers(root1);
          m_treeContainer.addComponent(root1);
          controller.onClickOpen(root1);
      }
docs: Initializes the tree with the given resource as a root.<p>
  
  @param rootRes the new tree root resource
  @throws CmsException if something goes wrong