{
GlobalTransaction gtx = getGlobalTransaction(ctx);
TransactionEntry te = ctx.getTransactionEntry();
if (te.hasLocalModifications())
{
OptimisticPrepareCommand replicablePrepareCommand = command.clone(); // makre sure we remove any "local" transactions
replicablePrepareCommand.removeModifications(te.getLocalModifications());
command = replicablePrepareCommand;
}
// replicate the prepare call.
broadcastPrepare(command, gtx, ctx);