private Object getOwnerForLock() { Object owner = cache.getCurrentTransaction(); return owner == null ? Thread.currentThread() : owner; } }
private Object getLockOwner() { Object owner = cache.getCurrentTransaction(); if (owner == null) owner = Thread.currentThread(); return owner; } }