}
else {
throw new AssertionFailure( "Unknown action type: " + action );
}
if ( associationPersister.hostingEntityRequiresReadAfterUpdate() && entity == null ) {
entity = session.getPersistenceContext().getEntity( session.generateEntityKey( entityId, getElementPersister() ) );
}
associationPersister.hostingEntity( entity );