class EventTypeValidator implements Validator {

    @Override
    public ValidationResult validate(String subject, String input, ValidationContext context) {
        final String explanation = isValidEventType(input);
        return new ValidationResult.Builder()
                .subject(subject)
                .input(input)
                .valid(explanation == null)
                .explanation(explanation)
                .build();
    }

}