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