if (!result.hasErrors && null != result.js) {
StringBuilder builder = new StringBuilder();
TokenConsumer tc = request.getDebug() ?
new JsPrettyPrinter(new Concatenator(builder))
: new JsMinimalPrinter(new Concatenator(builder));
RenderContext rc = new RenderContext(tc)
.withAsciiOnly(true)
.withEmbeddable(true);
result.js.render(rc);
rc.getOut().noMoreTokens();