getEneityManager deprecated