protocol.write(protocol.new BlockListEnd(), channel);
/* Start to do the record difference analysis. */
Message msg = protocol.read(channel);
if (msg.getOp() == Protocol.REMOTE_DIFF_REQUEST) {
cursor = db.openCursor(null, null);
sendDiffArea(cursor, (RemoteDiffRequest) msg, protocol);
runDiffAnalysis(cursor, protocol);
} else if (msg.getOp() != Protocol.DONE) {
protocol.write(protocol.new ProtocolError
("Invalid message: " + msg), channel);