throw e;
} catch (JMException e) {
_log.error("Could not create management beans locally. The error returned was: " + e.getMessage(), e);
// Helpfully, there is no JMRuntimeException(String, Throwable) constructor that is visible. So we won't call
// it for the moment. We could do it via introspection, but this is nasty and a poor way of overcoming a JMX limitation
JMRuntimeException ex = new JMRuntimeException("Error creating management beans locally");
ex.setStackTrace(e.getStackTrace());
throw ex;
}
}
}