class NotNullConstraintValidationErrorDescriptorBuilder implements ValidationErrorDescriptorBuilder<NotNull> {

    @Override
    public ErrorDescriptor build(ConstraintViolation<NotNull> violation) {
        return new ErrorDescriptor().setErrorCode(DefaultConstraintAnnotation.getErrorCode(violation)).
                addProperties(new ClientProperty("propertyPath", violation.getPropertyPath().toString()))
                .setParameters(violation.getPropertyPath().toString());
    }

}