modify the access modifier from protected to public in order to access the getEntityManager method from other classes