code: @SuppressWarnings("deprecation")
  	@Override
  	public <S extends T> S save(final S entity) {
  		if (arangoOperations.getVersion().getVersion().compareTo("3.4.0") < 0) {
  			arangoOperations.upsert(entity, UpsertStrategy.REPLACE);
  		} else {
  			arangoOperations.repsert(entity);
  		}
  		return entity;
  	}
docs: Saves the passed entity to the database using upsert from the template
  
  @param entity
  the entity to be saved to the database
  @return the updated entity with any id/key/rev saved