public Object eval(Reader script, ScriptContext context)
throws ScriptException {
final Bindings props = context.getBindings(ScriptContext.ENGINE_SCOPE);
final SlingScriptHelper scriptHelper = (SlingScriptHelper) props.get(SLING);
if (scriptHelper != null) {
<BUG>((JavaScriptEngineFactory)this.getFactory()).callServlet(props, scriptHelper);
</BUG>
}
return null;
}

public Object eval(Reader script, ScriptContext context)
throws ScriptException {
final Bindings props = context.getBindings(ScriptContext.ENGINE_SCOPE);
final SlingScriptHelper scriptHelper = (SlingScriptHelper) props.get(SLING);
if (scriptHelper != null) {
((JavaScriptEngineFactory)this.getFactory()).callServlet(props, scriptHelper, context);
}
return null;
