Yes, you are right: as far as `RedisLock` is a wrapper for `Lock` from `localRegistry` they are really different from different `RedisLockRegistry`, because they keep different `ReentrantLock` object. So, `getOuterType()` is good compromise to protect from that.