/** * @param nodeId Node ID. * @param key Key. */ public void removeMapping(UUID nodeId, K key) { GridDistributedTxMapping<K, V> m = mappings.get(nodeId); if (m != null) { GridCacheTxEntry<K, V> txEntry = txMap.get(key); if (txEntry != null) m.removeEntry(txEntry); if (m.empty()) mappings.remove(nodeId); } }