fixes to transaction management in jpa persistence service. a new entitymanager is created and closed for each transaction.