code: public void store(Object entity) {
          Reference<String> stringReference = new Reference<>();
          boolean hasId = generateEntityIdOnTheClient.tryGetIdFromInstance(entity, stringReference);
          storeInternal(entity, null, null, !hasId ? ConcurrencyCheckMode.FORCED : ConcurrencyCheckMode.AUTO);
      }
docs: Stores the specified entity in the session. The entity will be saved when SaveChanges is called.
  
  @param entity Entity to store