Common persistence code between JPA and CMP 7.1.0-M1 API