You are correct, I used the existing getTransactionManager() method but it could be done more clearly.

I've amended my code to simply lookup the TransactionSynchronizationRegistry from JNDI.