public class TransactionSynchronizationRegistryHelper {
private static final Logger logger = LoggerFactory.getLogger(TransactionSynchronizationRegistryHelper.class);
public static void registerTransactionSynchronization(final Object tsro, final TransactionSynchronization ts) {
TransactionSynchronizationRegistry tsr = ( TransactionSynchronizationRegistry ) tsro;
tsr.registerInterposedSynchronization( new JtaTransactionSynchronizationAdapter( ts ) );
}