scriptType = ScriptType.INDEXED;
} else {
scriptType = ScriptType.INLINE;
}
final ScriptService scriptService = riverConfig.getScriptService();
final CompiledScript compiledScript = scriptService.compile(lang,
script, scriptType);
ExecutableScript executable = scriptService.executable(compiledScript,
vars);
return executable.run();
}