code: protected String getBasePath(String rootPath) {
  
          if (rootPath.endsWith(INHERITANCE_CONFIG_FILE_NAME)) {
              return rootPath.substring(0, rootPath.length() - INHERITANCE_CONFIG_FILE_NAME.length());
          }
          return rootPath;
      }
docs: Returns the base path for a given configuration file.
  
  E.g. the result for the input '/sites/default/.container-config' will be '/sites/default'.<p>
  
  @param rootPath the root path of the configuration file
  
  @return the base path for the configuration file