// the name of the fork stack is based on the name of the cache; this will allow multiple caches to share the
// same JG stack
String forkStackId = "modeshape-" + cacheName + "-fork-stack";
this.clusteringService = cacheChannel != null ? ClusteringService.startForked(forkStackId, cacheChannel) : null;
this.documentStore = connectors.hasConnectors() ? new FederatedDocumentStore(connectors, database) : new LocalDocumentStore(
database);
this.txnMgr = this.documentStore.transactionManager();
this.transactions = createTransactions(cacheName, config.getTransactionMode(), this.txnMgr);
suspendExistingUserTransaction();