PrepareCommand command = (PrepareCommand) object;
if (!transactionLog.hasPendingPrepare(command)) {
if (trace) log.tracef("Applying pending prepare %s", command);
commandsFactory.initializeReplicableCommand(command, false);
RemoteTxInvocationContext ctx = invocationContextContainer.createRemoteTxInvocationContext(null /* No idea if this right PLM */);
RemoteTransaction transaction = txTable.createRemoteTransaction(command.getGlobalTransaction(), command.getModifications());
ctx.setRemoteTransaction(transaction);
ctx.setFlags(CACHE_MODE_LOCAL, Flag.SKIP_CACHE_STATUS_CHECK);
interceptorChain.invoke(ctx, command);
} else {
if (trace) log.tracef("Prepare %s not in tx log; not applying", command);
}
object = marshaller.objectFromObjectStream(oi);