TransactionIDFactory createTransactionIDFactory() {
TransactionIDFactory transactionIDFactory;
if (terracottaClient.getClusteredInstanceFactory() != null) {
transactionIDFactory = terracottaClient.getClusteredInstanceFactory().createTransactionIDFactory(getClusterUUID());
} else {
transactionIDFactory = new TransactionIDFactoryImpl();
}
return transactionIDFactory;
}