@RequestMapping(value = "/{id}/{userId}", params = "favorite", method = RequestMethod.PUT)
public String addFavoriteRestaurant(@PathVariable("id") Long id,
@PathVariable("userId") Long userId,
Model model) {
Restaurant restaurant = this.restaurantDao.findRestaurant(id);
UserAccount account = this.userAccountDao.findUserAccount(userId);
account.getFavorites().add(restaurant);
this.userAccountDao.persist(account);
addDateTimeFormatPatterns(model);
model.addAttribute("useraccount", account);
model.addAttribute("itemId", id);
return "redirect:/useraccounts/" + account.getId();
}