}
else {
// Simple BeanShell script: Let's create a proxy for it, implementing the given interfaces.
Assert.notEmpty(scriptInterfaces,
"Given script requires a script proxy: At least one script interface is required.");
XThis xt = (XThis) interpreter.eval("return this");
return Proxy.newProxyInstance(classLoader, scriptInterfaces, new BshObjectInvocationHandler(xt));
}
}