if ( associationPersister.hostingEntityRequiresReadAfterUpdate() && entity == null ) {
entity = session.getPersistenceContext().getEntity( session.generateEntityKey( entityId, getElementPersister() ) );
}
associationPersister.hostingEntity( entity );
associationPersister.flushToCache();
}
}