pageContext.getOut().write(ScriptBufferUtil.createOutput(buffy, converterManager, true));
}
else
{
ScriptBuffer buffy = new ScriptBuffer();
buffy.appendScript("return ").appendData(value).appendScript(";");
// wrap in a closure so that we don't pollute the javascript namespace with loads of variables
pageContext.getOut().write(
"(function() { " +
ScriptBufferUtil.createOutput(buffy, converterManager, false) +