The static entity manager instance is removed because  the entity manager is not thread safe. Instead, a new entity manager instance is created each time.