[KARAF-3393] Refactore the jpa features to support JPA API 2.0 and 2.1