throw ex;
}
if (ex instanceof RuntimeException || ex instanceof RemoteException) {
if (ROOT_LOGGER.isTraceEnabled())
ROOT_LOGGER.trace("Discarding bean " + primaryKey + " because of exception", ex);
instance.discard();
}
throw ex;
} catch (final Error e) {
if (ROOT_LOGGER.isTraceEnabled())
ROOT_LOGGER.trace("Discarding bean " + primaryKey + " because of error", e);