anchor.diff:  @Consumes(MediaType.APPLICATION_JSON)
   public Result tryMeManualValidation(Book book) {
       Set<ConstraintViolation<Book>> violations = validator.validate(book);
  -    Result res = new Result();
       if (violations.isEmpty()) {
  -        res.success = true;
  -        res.message = "Book is valid! It was validated by manual validation.";
  +        return new Result("Book is valid! It was validated by manual validation.");
       } else {
  -        res.success = false;
  -        res.message = violations.stream()
  -            .map(cv -> cv.getMessage())
  -            .collect(Collectors.joining(", "));
  -    }
  -    return res;
  +        return new Result(violations);
  +    }
   }
   ----
   
  
positive.code:         return message;
      }
  
      public void setMessage(String message) {
          this.message = message;
      }
  
      public boolean isSuccess() {
          return success;
      }
  
      public void setSuccess(boolean success) {
          this.success = success;
      }
  
  }
  
negative.code: @Produces(MediaType.APPLICATION_JSON)
  @Consumes(MediaType.APPLICATION_JSON)
  public Result tryMeServiceMethodValidation(Book book) {
      try {
          bookService.validateBook(book);
          return new Result("Book is valid! It was validated by service method validation.");
      } catch (ConstraintViolationException e) {
          return new Result(e.getConstraintViolations());
      }
  }
  ----
  
  