private void processCommitLog(ObjectInput oi) throws Exception {
if (trace) log.trace("Applying commit log");
Object object = marshaller.objectFromObjectStream(oi);
while (object instanceof TransactionLog.LogEntry) {
TransactionLog.LogEntry logEntry = (TransactionLog.LogEntry) object;
InvocationContext ctx = invocationContextContainer.createRemoteInvocationContext(null /* No idea if this right PLM */);
WriteCommand[] mods = logEntry.getModifications();
if (trace) log.tracef("Mods = %s", Arrays.toString(mods));
for (WriteCommand mod : mods) {
commandsFactory.initializeReplicableCommand(mod, false);
ctx.setFlags(CACHE_MODE_LOCAL, Flag.SKIP_CACHE_STATUS_CHECK);
interceptorChain.invoke(ctx, mod);
}
object = marshaller.objectFromObjectStream(oi);
}