docs: public static TupleContext tupleContext(SharedSessionContractImplementor session, EntityMetadataInformation metadata) {
  		if ( metadata != null ) {
  			OgmEntityPersister persister = (OgmEntityPersister) session.getFactory().getMetamodel().entityPersister( metadata.getTypeName() );
  			return persister.getTupleContext( session );
  		}
  		else if ( session != null ) {
  			// We are not dealing with a single entity but we might still need the transactionContext
  			TransactionContext transactionContext = TransactionContextHelper.transactionContext( session );
  			TupleContext tupleContext = new OnlyWithTransactionContext( transactionContext );
  			return tupleContext;
  		}
  		else {
  			return null;
  		}
  	}