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

    @Override
    public boolean isValid(ClientExpressionContainer value, ConstraintValidatorContext context) {
        return value == null || value.getObject() != null || value.getString() != null;
    }

}