private MessageConsumer createJMSMessageConsumer() throws MuleException, JMSException {
   InboundEndpoint endpoint = muleContext.getEndpointFactory().getInboundEndpoint("jms://out");
   JmsConnector jmsConnector =
       (JmsConnector) muleContext.getRegistry().lookupConnector("outPersistentConnector");
   JmsSupport jmsSupport = jmsConnector.getJmsSupport();
   MessageConsumer consumer =
       jmsSupport.createConsumer(
           jmsConnector.getSession(endpoint),
           jmsSupport.createDestination(jmsConnector.getSession(endpoint), endpoint),
           false,
           endpoint);
   return consumer;
 }