I also had this idea and did the following:
userTransaction.begin(); entityManager.joinTransaction(); identityManager.update() entityManager.flush(); userTransaction.commit();
Same effect. No persistence.