code: private CmsClientSitemapEntry getRootEntry(String rootPath, String targetPath)
      throws CmsSecurityException, CmsException {
  
          String sitePath = "/";
          if ((rootPath != null)) {
              sitePath = getCmsObject().getRequestContext().removeSiteRoot(rootPath);
          }
          CmsJspNavElement navElement = getNavBuilder().getNavigationForResource(
              sitePath,
              CmsResourceFilter.ONLY_VISIBLE_NO_DELETED);
          CmsClientSitemapEntry result = toClientEntry(navElement, true);
          if (result != null) {
              result.setPosition(0);
              result.setChildrenLoadedInitially(true);
              result.setSubEntries(getChildren(sitePath, 2, targetPath), null);
          }
          return result;
      }
docs: Reeds the site root entry.<p>
  
  @param rootPath the root path of the sitemap root
  @param targetPath the target path to open
  
  @return the site root entry
  
  @throws CmsSecurityException in case of insufficient permissions
  @throws CmsException if something goes wrong