catch (InitException ie) {
logger.log(Level.WARNING, "Initialization" +
" exception occurred while getting" +
" MBean Server Instance", ie);
throw new DiagnosticException(ie.getMessage());
}
catch (Exception e) {
final String msg = getExceptionMessage(e);
if (msg != null) {
logger.log(Level.WARNING, e.getMessage(), e);
}
throw new DiagnosticException(e.getMessage());
}
}