public void configure(EndpointMessageListener listener) {
    if (isDisableReplyTo()) {
      listener.setDisableReplyTo(true);
    }
    if (isEagerLoadingOfProperties()) {
      listener.setEagerLoadingOfProperties(true);
    }
    if (getReplyTo() != null) {
      listener.setReplyToDestination(getReplyTo());
    }

    // TODO: REVISIT: We really ought to change the model and let JmsProducer
    // and JmsConsumer have their own JmsConfiguration instance
    // This way producer's and consumer's QoS can differ and be
    // independently configured
    JmsOperations operations = listener.getTemplate();
    if (operations instanceof JmsTemplate) {
      JmsTemplate template = (JmsTemplate) operations;
      template.setDeliveryPersistent(isReplyToDeliveryPersistent());
    }
  }