public void render(JtwigModel model, OutputStream outputStream) {
RenderResult result = new StreamRenderResult(outputStream);
render(model, result);
}
private void render(JtwigModel model, RenderResult result) {
<BUG>Node compositeNode = environment.parser().parse(template);
</BUG>
RenderContextHolder.set(renderContextFactory.create(model, template, environment))
.nodeRenderer()
<BUG>.render(compositeNode)
.appendTo(result);</BUG>
}

public void render(JtwigModel model, OutputStream outputStream) {
RenderResult result = new StreamRenderResult(outputStream);
render(model, result);
}
private void render(JtwigModel model, RenderResult result) {
Node node = environment.parser().parse(template);
RenderContextHolder.set(renderContextFactory.create(model, template, environment))
.nodeRenderer()
.render(node)
.appendTo(result);
