try {
Method m = ProxyInvocation.getMethod(invocation);
Object args[] = ProxyInvocation.getArguments(invocation);
Object rc = m.invoke(target, args);
return new SimpleInvocationResult(true, rc);
} catch (InvocationTargetException e) {
Throwable t = e.getCause();
if (t instanceof Exception && t instanceof RuntimeException == false) {
return new SimpleInvocationResult(false, (Exception)t);
} else {
throw t;
}
}
}