removed direct wiring of entityManager. Now using @PersistentContext for all the DAO classes.