Make the JPA work with LOCAL_RESOURCE transaction.