add function em() for getting EntityManager via JPA plugin
add @deprecated annotation to bindForCurrentThread
implement JPA.withTransaction