CHANGE: Refactored EmailDAOImpl.java annotations according to persistence.xml and changed annotation to ViewScoped in EmailBean.java