private static TransactionManagerProxy.ConstructorParams getConstructorParams(TransactionLog transactionLog, ReferenceCollection resourceManagers) {
TransactionManagerProxy.ConstructorParams params = new TransactionManagerProxy.ConstructorParams();
XidFactory xidFactory = new XidFactoryImpl("WHAT DO WE CALL IT?".getBytes());
if (transactionLog == null) {
transactionLog = new UnrecoverableLog();
}
TransactionManager delegate = new TransactionManagerImpl(transactionLog, xidFactory);
Recovery recovery = new RecoveryImpl(transactionLog, xidFactory);
params.delegate = delegate;
params.xidImporter = (XidImporter) delegate;