* beginExecution before and endExecution after it, which commits all
* changes after execution.
*/
public static Object invoke(Callable callable, Object obj, Object... args) {
lastError = null;
Scope scope;
if (obj instanceof Scope) {
scope = (Scope) obj;
obj = scope.getScope();
} else {
scope = callable.getScope();
}
beginExecution(null, scope);
// Retrieve wrapper object for the native java object, and