Added multiple entity manager handling.