/* note: this isn't part of makeXaStrictTransactionalIfNeeded() as only xa_strict supports NonStop, meaning that only
* that transactional store can be wrapped by NonStopStore. Other TX modes have to wrap the NonStop store due to their
* lack of NonStop support (ie: lack of transaction context suspension/resuming).
*/
if (configuration.isXaTransactional()) {
SoftLockFactory softLockFactory = cacheManager.createSoftLockFactory(this);
LocalTransactionStore localTransactionStore = new LocalTransactionStore(getCacheManager().getTransactionController(),
softLockFactory, this, store, copyStrategy);
this.compoundStore = new JtaLocalTransactionStore(localTransactionStore, transactionManagerLookup,
cacheManager.getTransactionController());
} else if (configuration.isLocalTransactional()) {
SoftLockFactory softLockFactory = cacheManager.createSoftLockFactory(this);
this.compoundStore = new LocalTransactionStore(getCacheManager().getTransactionController(), softLockFactory, this, store,
copyStrategy);
} else {
this.compoundStore = store;
}