throw (InstanceNotFoundException) t;
if (t instanceof MBeanRegistrationException)
throw (MBeanRegistrationException) t;
}
if (result instanceof RuntimeException)
throw new RuntimeMBeanException((RuntimeException) result);
if (result instanceof Error)
throw new RuntimeErrorException((Error) result);
// for some other reason, unregistration failed
throw new MBeanRegistrationException(new InvocationTargetException(t), "Cannot unregister MBean");