improved JPAManager checks