throw new ReflectionException(x);
}
catch (InvocationTargetException x)
{
Throwable t = x.getTargetException();
if (t instanceof Error) throw new RuntimeErrorException((Error)t);
if (t instanceof JMRuntimeException) throw (JMRuntimeException)t;
if (t instanceof RuntimeException) throw new RuntimeMBeanException((RuntimeException)t);
throw new MBeanException((Exception)t);
}
}