A REST service in java using Jersey 1.17 and JPA