//set xa enabled
if (configuration.isTerracottaClustered()) {
configuration.getTerracottaConfiguration().setCacheXA(true);
}
SoftLockFactory softLockFactory = cacheManager.createSoftLockFactory(this);
TransactionIDFactory transactionIDFactory = cacheManager.createTransactionIDFactory();
// this xaresource is for initial registration and recovery
EhcacheXAResource xaResource = new EhcacheXAResourceImpl(this, clusteredStore, transactionManagerLookup,
softLockFactory, transactionIDFactory);
transactionManagerLookup.register(xaResource);