code: private Map<String, Object> changesDictForRevision(RevisionInternal rev) {
          Map<String, Object> changesDict = new HashMap<String, Object>();
          changesDict.put("rev", rev.getRevID());
  
          List<Map<String, Object>> changes = new ArrayList<Map<String, Object>>();
          changes.add(changesDict);
  
          Map<String, Object> result = new HashMap<String, Object>();
          result.put("seq", rev.getSequence());
          result.put("id", rev.getDocID());
          result.put("changes", changes);
          if (rev.isDeleted()) {
              result.put("deleted", true);
          }
          if (changesIncludesDocs) {
              result.put("doc", rev.getProperties());
          }
          return result;
      }
docs: CHANGES: *