XML configuration for JPA store works. Refactoring