code: public boolean isSiteRoot(String rootPath) {
  
          String siteRoot = getSiteRoot(rootPath);
          rootPath = CmsStringUtil.joinPaths(rootPath, "/");
          return rootPath.equals(siteRoot);
  
      }
docs: Checks whether a given root path is a site root.<p>
  
  @param rootPath a root path
  
  @return true if the given path is the path of a site root