@Override
	public ArrayList<String> getCategories() {
		System.out.println("Hello from SessionBean getCategories");
		ArrayList<String> categories = new ArrayList<String>(); 
		List<Category> obtainedCategories = (List<Category>) emgr.createNamedQuery("Category.findAll", Category.class).getResultList();
		for (int i = 0; i < obtainedCategories.size(); i++) {
			categories.add(obtainedCategories.get(i).getCategoryName());
			System.out.println("Current ArrayList of categories = " + categories);
		}
		return categories;
	}