// Set up as many reply threads as there are threads to process requests
uimaAsContext2.setConcurrentConsumerCount(concurrentReplyConsumers);
uimaAsContext2.put("EndpointName", endpointName);
UimaTransport parentVmTransport = parentController.getTransport(uimaAsContext2, endpointName);
parentVmTransport.produceUimaMessageDispatcher(vmTransport);
// Creates parent listener for receiving replies from this delegate.
UimaMessageListener parentListener = parentVmTransport.produceUimaMessageListener();
// Plug in message handlers
parentListener.initialize(uimaAsContext2);
// Creates delegate's dispatcher. It is wired to send replies to the parent's listener.