if (locks.get() == null) return;
Xid txId = (Xid) activeTransactionBranch.get();
for (Iterator it = ((HashSet)locks.get()).iterator(); it.hasNext();) {
GenericLock lock = (GenericLock) it.next();
lock.release(txId);
getLogger().log(
"Release lock: " + txId + " released " + lock.getResourceId().toString(),
LOG_CHANNEL,
Logger.DEBUG);
}