MethodUtils.invokeMethod(obj, modelClassMethod, null);
} catch(InvocationTargetException e){
if(e.getCause() instanceof SwingObjectsException){
throw (SwingObjectsException)e.getCause();
}else{
throw new SwingObjectsException("error.severe.SF001",ErrorSeverity.SEVERE,
"Runtime exception in model - Error caught while trying to invoke method "+modelClassMethod+" on "+obj,
(Exception)e.getCause(), SwingActionFactory.class);
}
} catch(Exception e){
throw new SwingObjectsException("error.severe.SF001",ErrorSeverity.SEVERE,
"Error caught while trying to invoke method "+modelClassMethod+" on "+obj,
e, SwingActionFactory.class);
}
}