Protect against a reference to a close entity manager (Old DAO)