code: @Override
      protected void onPersist(EntityMetadata entityMetadata, Object entity, Object id, List<RelationHolder> rlHolders)
      {
          JsonDocument doc = handler.getDocumentFromEntity(entityMetadata, entity, kunderaMetadata);
  
          if (!isUpdate)
          {
              bucket.insert(doc);
              LOGGER.debug("Inserted document with ID : " + doc.id() + " in the " + bucket.name() + " Bucket");
          }
          else
          {
              bucket.upsert(doc);
              LOGGER.debug("Updated document with ID : " + doc.id() + " in the " + bucket.name() + " Bucket");
          }
      }
docs: /*
  (non-Javadoc)
  
  @see com.impetus.kundera.client.ClientBase#onPersist(com.impetus.kundera.
  metadata.model.EntityMetadata, java.lang.Object, java.lang.Object,
  java.util.List)