In this particular case, the issue in SynchronizationCallbackCoordinatorImpl.beforeCompletion was not due to a direct call to EntityManager interface. It was due to the transaction commit processing.