code: @Override
      protected void onPersist(EntityMetadata entityMetadata, Object entity, Object id, List<RelationHolder> rlHolders)
      {
          if (!isUpdate)
          {
              r.db(entityMetadata.getSchema()).table(entityMetadata.getTableName())
                      .insert(populateRmap(entityMetadata, entity)).run(connection);
          }
          else
          {
              r.db(entityMetadata.getSchema()).table(entityMetadata.getTableName())
                      .update(populateRmap(entityMetadata, entity)).run(connection);
          }
      }
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)