code: public static ByteArrayDocument from(ByteArrayDocument doc, String id, byte[] content) {
          return ByteArrayDocument.create(id, doc.expiry(), content, doc.cas(), doc.mutationToken());
      }
docs: Creates a copy from a different {@link ByteArrayDocument}, but changes the document ID and content.
  
  @param doc the original {@link ByteArrayDocument} to copy.
  @param id the per-bucket unique document id.
  @param content the content of the document.
  @return a copied {@link ByteArrayDocument} with the changed properties.