{
IDataStore dataStore = newDataStore();
IStoreSettings storeSettings = getStoreSettings();
if (dataStore.canBeAsynchronous())
{
int capacity = storeSettings.getAsynchronousQueueCapacity();
dataStore = new AsynchronousDataStore(dataStore, capacity);
}