SortedMap<Integer, VersionedDocument.AppliedDocOp> appliedDocOps =
editSession.getDocument().getAppliedDocOps(req.getCurrentCcRevision() + 1);
List<ServerToClientDocOpImpl> appliedDocOpsList = Lists.newArrayList();
for (Entry<Integer, VersionedDocument.AppliedDocOp> entry : appliedDocOps.entrySet()) {
DocOpImpl docOp = (DocOpImpl) entry.getValue().docOp;
ServerToClientDocOpImpl wrappedBroadcastDocOp = ServerToClientDocOpImpl.make()
.setClientId(req.getClientId()).setAppliedCcRevision(entry.getKey()).setDocOp2(docOp)
.setFileEditSessionKey(resourceId)
.setFilePath(editSession.getSavedPath());
appliedDocOpsList.add(wrappedBroadcastDocOp);