code: public <T> T upsert(final T document) {
          return (T) toEntityForUpdate(document.getClass(), bucket.upsert(toDocument(document)));
      }
docs: All the signed properties will be updated/inserted into data store.
  
  @param document
  @return
  
  @see com.couchbase.client.java.Bucket#upsert(Document)