code: protected Response createResponse(Throwable exception, ValidationErrorUserException error,
        Map<String, List<String>> errorsMap) {
  
      LOG.warn("Service failed due to validation failure.", error);
      if (exception == error) {
        return createResponse(Status.BAD_REQUEST, error, errorsMap);
      } else {
        return createResponse(Status.BAD_REQUEST, error, exception.getMessage(), errorsMap);
      }
    }
docs: Creates the {@link Response} for the given validation exception.
  
  @param exception is the original validation exception.
  @param error is the wrapped exception or the same as <code>exception</code>.
  @param errorsMap is a map with all validation errors
  @return the requested {@link Response}.