@RequestMapping(value = "/movies/add", method = RequestMethod.POST) // aggiunge movie al db
 public Movie add(
     @RequestParam(value = "title", required = true) String title,
     @RequestParam(value = "genre", required = true) String genre,
     @RequestParam(value = "year", required = true) int year,
     @RequestParam(value = "language", required = true) String language) {
   Movie movie = new Movie(title, genre, year, language);
   serv.addElement(movie);
   return movie;
 }
 @RequestMapping(value = "/movies/addtwo", method = RequestMethod.POST)
 public @ResponseBody Movie add(@RequestBody Movie movie, HttpServletRequest request) {
   MovieNotValidException mnve = MovieValidator.control(movie);
   if (mnve.getSize() == 0) {
     serv.addElement(movie);
     logger.debug("Film aggiunto");
   } else {
     for (int i = 0; i < mnve.getSize(); i++) {
       mnve.getSingleException(i).echoMessage();
     }
   }
   return movie;
 }