code: public List<String> getSubSitePaths(CmsObject cms, String subSiteRoot) {
  
          List<String> result = new ArrayList<String>();
          String normalizedRootPath = CmsStringUtil.joinPaths("/", subSiteRoot, "/");
          CmsADEConfigCacheState state = getCacheState(isOnline(cms));
          Set<String> siteConfigurationPaths = state.getSiteConfigurationPaths();
          for (String path : siteConfigurationPaths) {
              if ((path.length() > normalizedRootPath.length()) && path.startsWith(normalizedRootPath)) {
                  result.add(path);
              }
          }
          return result;
      }
docs: Returns all sub sites below the given path.<p>
  
  @param cms the cms context
  @param subSiteRoot the sub site root path
  
  @return the sub site root paths