I already tried but there is no instance of such a bean when the transaction completes. I'll try with a ThreadLocal.