code: public static RevisionInternal revisionObject(
              Document doc,
              String docID,
              String revID,
              boolean withBody) {
  
          boolean deleted = doc.selectedRevDeleted();
          if (revID == null)
              revID = doc.getSelectedRevID();
          RevisionInternal rev = new RevisionInternal(docID, revID, deleted);
          rev.setSequence(doc.getSelectedSequence());
          if (withBody) {
              Status status = loadBodyOfRevisionObject(rev, doc);
              if (status.isError() && status.getCode() != Status.GONE)
                  return null;
          }
          return rev;
      }
docs: in CBLForestBridge.m
  + (CBL_MutableRevision*) revisionObjectFromForestDoc: (VersionedDocument&)doc
  revID: (NSString*)revID
  withBody: (BOOL)withBody