public void validate()

in validator/src/main/java/sample/camel/GreetingValidator.java [37:45]


    public void validate(Message message, DataType type) throws ValidationException {
        Object body = message.getBody();
        LOG.info("Validating : [{}]", body);
        if (body instanceof String && body.equals(greeting)) {
            LOG.info("OK");
        } else {
            throw new ValidationException(message.getExchange(), "Wrong content");
        }
    }