@Override public void afterDestroy(EntryEvent event) { // fix bug 37603 if (GatewayImpl.this.getPrimary()) { return; } // Send event to the event dispatcher Object oldValue = event.getOldValue(); if (oldValue instanceof GatewayEventImpl) { GatewayEventImpl gatewayEvent = (GatewayEventImpl)oldValue; this._eventProcessor.handlePrimaryDestroy(gatewayEvent); } } }