code: public void transform(String name, String transform) throws Exception {
  
          File configFile = new File(m_configDir, name);
          File transformFile = new File(m_xsltDir, transform);
          try (InputStream stream = new FileInputStream(transformFile)) {
              StreamSource source = new StreamSource(stream);
              transform(configFile, source);
          }
      }
docs: Transforms a config file with an XSLT transform.
  
  @param name file name of the config file
  @param transform file name of the XSLT file
  
  @throws Exception if something goes wrong