docs: public Response put(URI uri, Object object, boolean newEntity, int writeQuorum) {
          assertNotEmpty(object, "object");
          final JsonObject json = getGson().toJsonTree(object).getAsJsonObject();
          String id = getAsString(json, "_id");
          String rev = getAsString(json, "_rev");
          if (newEntity) { // save
              assertNull(rev, "rev");
              id = (id == null) ? generateUUID() : id;
          } else { // update
              assertNotEmpty(id, "id");
              assertNotEmpty(rev, "rev");
          }
          URI httpUri = null;
          if (writeQuorum > -1) {
              httpUri = new DatabaseURIHelper(uri).documentUri(id, "w", writeQuorum);
          } else {
              httpUri = new DatabaseURIHelper(uri).documentUri(id);
          }
          HttpConnection connection = Http.PUT(httpUri, "application/json");
          connection.setRequestBody(json.toString());
  
          return executeToResponse(connection);
      }