final EntityKey key = EntityKeyBuilder.fromPersister( this, id, session );
Tuple resultset = gridDialect.getTuple( key, this.getTupleContext() );
// add the discriminator
if ( j == 0 ) {
if (resultset != null) {
throw new HibernateException( "trying to insert an already existing entity: "
+ MessageHelper.infoString( this, id, getFactory() ) );
}
if ( discriminator.isNeeded() ) {
resultset = createNewResultSetIfNull( key, resultset, id, session );