handling multiple entity managers the smart way