final MapContainer mapContainer = this.mapContainer;
if (mapContainer.getWanReplicationPublisher() == null
&& mapContainer.getWanMergePolicy() == null) {
return;
}
final MapEventPublisher mapEventPublisher = getMapEventPublisher();
final Data key = dataKey;
if (EntryEventType.REMOVED.equals(eventType)) {
mapEventPublisher.publishWanReplicationRemove(name, key, getNow());
} else {
final Record record = recordStore.getRecord(key);
if (record != null) {
dataValue = toData(dataValue);
final EntryView entryView = createSimpleEntryView(key, dataValue, record);
mapEventPublisher.publishWanReplicationUpdate(name, entryView);
}
}
}