DataVersionPopulator populator = new DataVersionPopulator(getTransactionWorkspace(ctx), command.getModifications().size());
// visit all elements in the collection and apply the DataVersionPopulator to ensure all commands have data versions set.
populator.visitCollection(null, command.getModifications());
ReplicableCommand toBroadcast = commandsFactory.buildOptimisticPrepareCommand(gtx, populator.versionedCommands, command.getLocalAddress(), command.isOnePhaseCommit());
//record the things we have possibly sent
broadcastTxs.add(gtx);
if (log.isDebugEnabled())
{