Source:
<code>private void prepareTransactionInternal(HotRodHeader header, AdvancedCache<byte[], byte[]> cache, XidImpl xid, boolean onePhaseCommit, List<TransactionWrite> writes, boolean recoverable, long timeout) { try { if (writes.isEmpty()) { if (isTrace) { log.tracef("Transaction %s is read only.", xid); } writeResponse(header, createTransactionResponse(header, XAResource.XA_RDONLY)); return; } <START> PrepareCoordinator txContext = new PrepareCoordinator(cache, xid, recoverable, timeout); END> if (checkExistingTxForPrepare(header, txContext)) { if (isTrace) { log.tracef("Transaction %s conflicts with another node.", xid); } return; } if (!txContext.startTransaction()) { if (isTrace) { log.tracef("Unable to start transaction %s", xid); } writeNotExecuted(header); return; } AdvancedCache<byte[], byte[]> txCache = txContext.decorateCache(cache); try { boolean rollback = false; for (TransactionWrite write : writes) { if (isValid(write, txCache)) { if (write.isRemove()) { txCache.remove(write.key); } else { txCache.put(write.key, write.value, write.metadata); } } else { txContext.setRollbackOnly(); rollback = true; break; } } int xaCode = rollback ? txContext.rollback() : txContext.prepare(onePhaseCommit); writeResponse(header, createTransactionResponse(header, xaCode)); } catch (Exception e) { writeResponse(header, createTransactionResponse(header, txContext.rollback())); } finally { EmbeddedTransactionManager.dissociateTransaction(); } } catch (Throwable t) { log.error("meh...", t); writeException(header, t); } }</code><technical_language>Please rename variable</technical_language>

Target:
private void prepareTransactionInternal(HotRodHeader header, AdvancedCache<byte[], byte[]> cache, XidImpl xid, boolean onePhaseCommit, List<TransactionWrite> writes, boolean recoverable, long timeout) { try { if (writes.isEmpty()) { if (isTrace) { log.tracef("Transaction %s is read only.", xid); } writeResponse(header, createTransactionResponse(header, XAResource.XA_RDONLY)); return; } PrepareCoordinator prepareCoordinator = new PrepareCoordinator(cache, xid, recoverable, timeout); if (checkExistingTxForPrepare(header, prepareCoordinator)) { if (isTrace) { log.tracef("Transaction %s conflicts with another node.", xid); } return; } if (!prepareCoordinator.startTransaction()) { if (isTrace) { log.tracef("Unable to start transaction %s", xid); } writeNotExecuted(header); return; } AdvancedCache<byte[], byte[]> txCache = prepareCoordinator.decorateCache(cache); try { boolean rollback = false; for (TransactionWrite write : writes) { if (isValid(write, txCache)) { if (write.isRemove()) { txCache.remove(write.key); } else { txCache.put(write.key, write.value, write.metadata); } } else { prepareCoordinator.setRollbackOnly(); rollback = true; break; } } int xaCode = rollback ? prepareCoordinator.rollback() : prepareCoordinator.prepare(onePhaseCommit); writeResponse(header, createTransactionResponse(header, xaCode)); } catch (Exception e) { writeResponse(header, createTransactionResponse(header, prepareCoordinator.rollback())); } finally { EmbeddedTransactionManager.dissociateTransaction(); } } catch (Throwable t) { log.debugf(t, "Exception while replaying transaction %s for cache %s", xid, cache.getName()); writeException(header, t); } }