if (type.equals("filtered")) {
PrintWriter out = resp.getWriter();
ArrayList<YFDish> dish = (ArrayList<YFDish>) this.dishService.getDishesBeginingBy(req.getParameter("begin"));
ArrayList<Dish> dishes = new ArrayList<Dish>();
for(YFDish d : dish) {
Dish di = new Dish();
di.setId(d.getId());
di.setName(d.getName());
dishes.add(di);
}
Gson dishGson = new Gson();