XidFactory xidFactory = new XidFactoryImpl("WHAT DO WE CALL IT?".getBytes());
if (transactionLog == null) {
transactionLog = new UnrecoverableLog();
}
ExtendedTransactionManager delegate = new TransactionManagerImpl(defaultTransactionTimeoutSeconds, transactionLog, xidFactory);
Recovery recovery = new RecoveryImpl(transactionLog, xidFactory);
params.delegate = delegate;
params.xidImporter = (XidImporter) delegate;
params.recovery = recovery;
params.resourceManagers = resourceManagers;
return params;