{
return pMethod.invoke( pInstance, pArgs );
}
catch ( IllegalAccessException e )
{
throw new XmlRpcException( "Illegal access to method " + pMethod.getName() + " in class " + clazz.getName(),
e );
}
catch ( IllegalArgumentException e )
{
throw new XmlRpcException(
"Illegal argument for method " + pMethod.getName() + " in class " + clazz.getName(), e );
}
catch ( InvocationTargetException e )
{
Throwable t = e.getTargetException();
if ( t instanceof XmlRpcException )
{
throw (XmlRpcException) t;
}
throw new XmlRpcException(
"Failed to invoke method " + pMethod.getName() + " in class " + clazz.getName() + ": " + t.getMessage(),
t );
}
finally
{