code: public void addTransformationConfig(String chain, String path, boolean recursive,
              TransformationConfig transformationCfg, Integer order, String before) throws Exception {
          long startTime = System.currentTimeMillis();
          Exception exception = null;
          if (!cfg.exists()) {
              init();
          }
          userDir = new File(System.getProperty("user.dir")).getAbsolutePath();
          System.setProperty("user.dir", options.getExecutionDirectory().getAbsolutePath());
          try {
              ConfigurationManager manager = new ConfigurationManager(cfg, false);
  
              ProjectConfigurationProvider cfgProvider = manager.getProjectConfigurationProvider();
  
              cfgProvider.addTransformationConfig(chain, path, transformationCfg, recursive, order, before);
          } catch (Exception e) {
              exception = e;
          } finally {
              System.setProperty("user.dir", userDir);
              updateMsg(startTime, exception);
          }
      }
docs: Adds a new transformation configuration into the configuration file
  
  @param chain
  chain identifier where the transformation will be appended. It can be null.
  @param path
  the path where the transformation config will be applied if the chain does not
  exists or is null.
  @param recursive
  if the transformation config is added recursively to all the submodules.
  @param transformationCfg
  transformation configuration to add
  @param order
  priority order
  @param before
  defines which is the next chain to execute
  @throws Exception
  in case that the walkmod configuration file can't be read.