code: private CmsTemplateMapperConfiguration getConfiguration(final CmsObject cms) {
  
          if (!m_enabled) {
              return CmsTemplateMapperConfiguration.EMPTY_CONFIG;
          }
  
          if (m_configPath == null) {
              m_configPath = OpenCms.getSystemInfo().getConfigFilePath(cms, "template-mapping.xml");
          }
  
          return (CmsTemplateMapperConfiguration)(CmsVfsMemoryObjectCache.getVfsMemoryObjectCache().loadVfsObject(
              cms,
              m_configPath,
              new Transformer() {
  
                  @Override
                  public Object transform(Object input) {
  
                      try {
                          CmsFile file = cms.readFile(m_configPath, CmsResourceFilter.IGNORE_EXPIRATION);
                          SAXReader saxBuilder = new SAXReader();
                          try (ByteArrayInputStream stream = new ByteArrayInputStream(file.getContents())) {
                              Document document = saxBuilder.read(stream);
                              CmsTemplateMapperConfiguration config = new CmsTemplateMapperConfiguration(cms, document);
                              return config;
                          }
                      } catch (Exception e) {
                          LOG.warn(e.getLocalizedMessage(), e);
                          return new CmsTemplateMapperConfiguration(); // empty configuration, does not do anything
                      }
  
                  }
              }));
      }
docs: Loads the configuration file, using  CmsVfsMemoryObjectCache for caching.
  
  @param cms the CMS context
  @return the template mapper configuration