docs: private static void configure(InputStream input, Map<String, String> substitutionVariables) {
      LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();
      try {
        JoranConfigurator configurator = new JoranConfigurator();
        configurator.setContext(configureContext(lc, substitutionVariables));
        configurator.doConfigure(input);
      } catch (JoranException e) {
        // StatusPrinter will handle this
      } finally {
        IOUtils.closeQuietly(input);
      }
      StatusPrinter.printInCaseOfErrorsOrWarnings(lc);
    }