docs: public Response put(DesignDocument document) {
          CouchDbUtil.assertNotEmpty(document, "DesignDocument");
  
          // Ensure the _design prefix
          ensureDesignPrefixObject(document);
  
          DesignDocument documentFromDb;
          try {
              documentFromDb = get(document.getId());
  
          } catch (NoDocumentException e) {
              return db.save(document);
          }
          if (!document.equals(documentFromDb)) {
              document.setRevision(documentFromDb.getRevision());
              return db.update(document);
          }
          return null;
      }