{
return method.invoke(o, null);
}
catch( InvocationTargetException ite )
{
EventCartridge ec = context.getEventCartridge();
/*
* if we have an event cartridge, see if it wants to veto
* also, let non-Exception Throwables go...
*/
if ( ec != null && ite.getTargetException() instanceof java.lang.Exception)
{
try
{
return ec.methodException( o.getClass(), methodUsed, (Exception)ite.getTargetException() );
}
catch( Exception e )
{
throw new MethodInvocationException(
"Invocation of method '" + methodUsed + "'"