sb.append("\nWaiters: ").append(waiters).append("\n");
StringBuilder deadlockInfo = findDeadlock(useLock, locker);
if (deadlockInfo != null) {
sb.append(deadlockInfo);
}
LockConflictException ret = isLockNotTxnTimeout ?
newLockTimeoutException(locker, sb.toString()) :
newTxnTimeoutException(locker, sb.toString());
ret.setOwnerTxnIds(getTxnIds(owners));
ret.setWaiterTxnIds(getTxnIds(waiters));
ret.setTimeoutMillis(timeout);
return ret;
}