class JmsPropertiesBuilder {

    public JmsPropertiesBuilder with(String key, boolean value) {
        validate(key, value);
        properties.put(key, new Property<>(key,
                value,
                JmsTask.wrap(m -> m.setBooleanProperty(key, value))));
        return this;
    }

}