code: public static String getBasePath(String siteConfigFile) {
  
          if (siteConfigFile.endsWith(CmsADEManager.CONFIG_SUFFIX)) {
              return CmsResource.getParentFolder(CmsResource.getParentFolder(siteConfigFile));
          }
          return null;
      }
docs: Gets the base path for a given sitemap configuration file.<p>
  
  @param siteConfigFile the root path of the sitemap configuration file
  
  @return the base path for the sitemap configuration file