EndpointBuilder jmsEndpointBuilder = muleContext.getRegistry().lookupEndpointBuilder("jmsEndpoint");
EndpointBuilder vmEndpointBuilder = muleContext.getRegistry().lookupEndpointBuilder("vmEndpoint");
EndpointBuilder ajaxEndpointBuilder = muleContext.getRegistry().lookupEndpointBuilder("ajaxEndpoint");
InboundEndpoint jmsEndpoint = jmsEndpointBuilder.buildInboundEndpoint();
Connector jmsConnector = jmsEndpoint.getConnector();
InboundEndpoint vmEndpoint = vmEndpointBuilder.buildInboundEndpoint();
Connector vmConnector = vmEndpoint.getConnector();
InboundEndpoint ajaxEndpoint = ajaxEndpointBuilder.buildInboundEndpoint();
Connector ajaxConnector = ajaxEndpoint.getConnector();
DefaultReplyToHandler jmsHandler = (DefaultReplyToHandler) ((AbstractConnector)jmsConnector).getReplyToHandler(jmsEndpoint);
DefaultReplyToHandler vmHandler = (DefaultReplyToHandler) ((AbstractConnector)vmConnector).getReplyToHandler(vmEndpoint);
DefaultReplyToHandler ajaxHandler = (DefaultReplyToHandler) ((AbstractConnector)ajaxConnector).getReplyToHandler(ajaxEndpoint);