String key = EndpointSupport.getUniqueKey(endpoint);
EndpointStats stats = (EndpointStats) endpointStats.remove(key);
// Register MBean
ManagementContext context= container.getManagementContext();
try {
context.unregisterMBean(context.createObjectName(context.createObjectNameProps(stats, true)));
} catch (Exception e) {
log.info("Unable to unregister endpoint statistics MBean: " + e.getMessage());
if (log.isDebugEnabled()) {
log.debug("Unable to unregister endpoint statistics MBean", e);
}