public OrchestratorComponent orchestrator() throws Exception {
OrchestratorCommonArea.initialize(common);
OrchestratorComponent orchestrator = new OrchestratorComponent(common.camelContext());
// Instantiate JobManagerEventListener delegate listener. This listener will receive
// incoming messages.
OrchestratorEventListener delegateListener = this.orchestratorDelegateListener(orchestrator);
// Inject a dispatcher into the listener in case it needs to send
// a message to another component
delegateListener.setDuccEventDispatcher(orchestratorTransport.duccEventDispatcher(common.pmRequestEndpoint, orchestrator.getContext()));
// orchestrator.getContext().addRoutes(this.routeBuilderForReplyEndpoint(common.orchestratorRequestEndpoint, delegateListener));
orchestrator.getContext().addRoutes(this.routeBuilder(orchestrator.getContext(), delegateListener));
orchestrator.getContext().addRoutes(this.routeBuilderForEndpoint(common.rmStateUpdateEndpoint, delegateListener));
orchestrator.getContext().addRoutes(this.routeBuilderForEndpoint(common.smStateUpdateEndpoint, delegateListener));
orchestrator.getContext().addRoutes(this.routeBuilderForEndpoint(common.jdStateUpdateEndpoint,delegateListener));