code: public static String generateScript(Script script, Map<String, Object> parameterValues) {
      StringWriter stringWriter = new StringWriter();
      try {
        Template template =
            new Template(null, new StringReader(script.getContent()), new Configuration(VERSION));
        template.process(parameterValues, stringWriter);
      } catch (TemplateException | IOException e) {
        throw new GenerateScriptException(
            "Error processing parameters for script [" + script.getName() + "]. " + e.getMessage());
      }
      return stringWriter.toString();
    }
docs: Render a script using the given parameter values