final SerializationService serializationService = mapServiceContext.getNodeEngine().getSerializationService();
final int writeDelaySeconds = mapContainer.getMapConfig().getMapStoreConfig().getWriteDelaySeconds();
final long millis = mapServiceContext.convertTime(writeDelaySeconds, TimeUnit.SECONDS);
// TODO writeCoalescing should be configurable.
boolean writeCoalescing = true;
final WriteBehindStore mapDataStore
= new WriteBehindStore(store, serializationService, millis, partitionId, writeCoalescing);
final WriteBehindQueue writeBehindQueue = pickWriteBehindQueue(mapServiceContext, writeCoalescing);
mapDataStore.setWriteBehindQueue(writeBehindQueue);
mapDataStore.setWriteBehindProcessor(writeBehindProcessor);
return (MapDataStore<K, V>) mapDataStore;
}