code: public void registerInterposedSynchronization(Synchronization sync)
     {
        TransactionImpl tx = registry.getTransaction();
  
        if (tx == null)
           throw new IllegalStateException();
  
        try
        {
           tx.registerSynchronization(sync);
        }
        catch (Throwable t)
        {
           // Nothing to do
        }
     }
docs: {@inheritDoc}