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();
js = builder.toString();
}
// TODO(jasvir): Improve Caja responses expiration handling
return createCajaResponse(request.getUrl(),