} else {
ArrayList<TableAddDishCategory> toReturn = new ArrayList<TableAddDishCategory>();
ArrayList<YFDishCategory> dishCategories = (ArrayList<YFDishCategory>) this.dishCategoryService.getCurrentDishCategories();
for(YFDishCategory dishCategory : dishCategories) {
TableAddDishCategory dc = new TableAddDishCategory();
dc.setId(dishCategory.getId());
dc.setName(dishCategory.getName());
toReturn.add(dc);
}
req.setAttribute("dishCategories", toReturn);