The static entity manager instance is removed. The entity manager is not thread safe. A new entity manager instance is created each time.
Merge branch 'master' of https://github.com/ssapunkova/cloud-sample-library