Encapsulate duplicate code in EntityPersister#deserializeAll()