method.setAccessible(true); // needed if implementation is an anonymous subclass of Object
Object result = method.invoke(o, marshalledArgs);
putResultIntoInvocation(invocation, typeToReturnToObjC, result);
} catch (InvocationTargetException e) {
logging.error("Exception calling method for selector " + selectorName, e);
throw new RococoaException("Exception calling method for selector " + selectorName, e.getCause());
} catch (Exception e) {
logging.error("Exception calling method for selector " + selectorName, e);
throw new RococoaException("Exception calling method for selector " + selectorName, e);
}
}