// Construct the Applied DocOp that we want to broadcast.
SortedMap<Integer, AppliedDocOp> appliedDocOps = result.appliedDocOps;
List<ServerToClientDocOpImpl> appliedDocOpsList = Lists.newArrayList();
for (Entry<Integer, VersionedDocument.AppliedDocOp> entry : appliedDocOps.entrySet()) {
DocOpImpl docOp = (DocOpImpl) entry.getValue().docOp;
ServerToClientDocOpImpl wrappedBroadcastDocOp = ServerToClientDocOpImpl.make()
.setClientId(authorId).setAppliedCcRevision(entry.getKey()).setDocOp2(docOp)
.setFileEditSessionKey(resourceId)
.setFilePath(editSession.getSavedPath());
appliedDocOpsList.add(wrappedBroadcastDocOp);
}