return configure(createReactor(dispatcher), environment);
}
private Reactor createReactor(Dispatcher dispatcher) {
if (traceEventPath) {
dispatcher = new TraceableDelegatingDispatcher(dispatcher);
}
return new Reactor((consumerRegistry != null ? consumerRegistry : createRegistry()),
dispatcher,
(router != null ? router : createEventRouter()),
dispatchErrorHandler,