String mapName = ((EntryEvent) event).getName();
if (config.findReplicatedMapConfig(mapName).isStatisticsEnabled()) {
ReplicatedRecordStore recordStore = replicatedStorages.get(mapName);
if (recordStore instanceof AbstractReplicatedRecordStore) {
LocalReplicatedMapStatsImpl stats = ((AbstractReplicatedRecordStore) recordStore).getReplicatedMapStats();
stats.incrementReceivedEvents();
}
}
} else if (listener instanceof ReplicatedMessageListener) {
((ReplicatedMessageListener) listener).onMessage((IdentifiedDataSerializable) event);
}