Some entitymanager stuff while researching JTA stuff.