if(context!=null) {
if(logger.isTraceEnabled())
logger.trace("[{}] Discard the service", ServiceElementUtil.getLoggingName(context));
ServiceBeanManager serviceBeanManager = context.getServiceBeanManager();
if(serviceBeanManager != null) {
DiscardManager discardMgr = serviceBeanManager.getDiscardManager();
if (discardMgr != null) {
discardMgr.discard();
} else {
logger.warn("[{}] DiscardManager is null, unable to discard", ServiceElementUtil.getLoggingName(context));
}
} else {
if(logger.isTraceEnabled())