class ExpressionRepresentationRequiredValidator implements ConstraintValidator<ExpressionRepresentationRequired, ClientExpressionContainer>, ValidationErrorDescriptorBuilder {

    @Override
    public ErrorDescriptor build(ConstraintViolation violation) {
        return createDescriptorFrom(violation.getMessageTemplate(), violation.getPropertyPath().toString());
    }

}