code: private CmsSite lookupSitesFolder(String rootPath) {
  
          int pos = rootPath.indexOf('/', SITES_FOLDER_POS);
          if (pos > 0) {
              // this assumes that the root path may likely start with something like "/sites/default/"
              // just cut the first 2 directories from the root path and do a direct lookup in the internal map
              return m_siteRootSites.get(rootPath.substring(0, pos));
          }
          return null;
      }
docs: Returns the configured site if the given root path matches site in the "/sites/" folder,
  or <code>null</code> otherwise.<p>
  
  @param rootPath the root path to check
  
  @return the configured site if the given root path matches site in the "/sites/" folder,
  or <code>null</code> otherwise