try
{
NativeObject result = (NativeObject) executor.invokeFunction("compileCoffeeScriptSource", content, source.toString());
if (result.containsKey("exception"))
{
throw new RuntimeException(getString(result, "exception"));
}
return IOUtils.toInputStream(getString(result, "output"), UTF8);