modified the generalized persistences facades(em instead of
getEntityManager())