class BehaviorDependentDispatcher extends AbstractPropertyDispatcherDecorator {

    @Override
    public MessageList getMessages(MessageList messageList) {
        if (isConsensus(forBoundObjectAndProperty(PropertyBehavior::isShowValidationMessages))) {
            return super.getMessages(messageList);
        } else {
            return new MessageList();
        }
    }

    public  BehaviorDependentDispatcher(PropertyDispatcher wrappedDispatcher,
            PropertyBehaviorProvider provider);

}