It seems like the JpaIdentityStore could easily abstract this out into a new class the same way that the EntityConverter does this with the AbstractEntityLoader.