Also, in retrospect accessing the CacheTransactionContext from the Session just makes more sense, even if #getCurrentCacheTransactionContext always returns a non-null value. The reason why is that we have to expose the CacheTransactionContext from Session anyway so that the code that makes caching calls can access it. |