The static entity manager instance is removed. It is not thread safe. A new entity manager instance is created each time instead.