code: private String applyReplacements(List<Replacement> replacements, TemplateOptions options) throws IOException {
      StringWriter sw = new StringWriter();
      reconstruct(sw, tokenStream, 0, tokenStream.size() - 1, replacements, options);
      return sw.toString();
    }
docs: /*