ROOT_LOGGER.error(consoleSlot == null ? "main" : consoleSlot);
}
ManagementRootConsoleRedirectHandler rootConsoleRedirectHandler = new ManagementRootConsoleRedirectHandler(consoleHandler);
DomainApiCheckHandler domainApiHandler = new DomainApiCheckHandler(modelControllerClient, controlledProcessStateService);
pathHandler.setDefaultHandler(rootConsoleRedirectHandler);
<BUG>if (consoleHandler != null) {
pathHandler.addPath(consoleHandler.getContext(), new BlockingHandler(consoleHandler));

}
pathHandler.addPath(DomainApiCheckHandler.PATH, secureDomainAccess(domainApiHandler, securityRealm));
</BUG>
}

ROOT_LOGGER.error(consoleSlot == null ? "main" : consoleSlot);
}
ManagementRootConsoleRedirectHandler rootConsoleRedirectHandler = new ManagementRootConsoleRedirectHandler(consoleHandler);
DomainApiCheckHandler domainApiHandler = new DomainApiCheckHandler(modelControllerClient, controlledProcessStateService);
pathHandler.setDefaultHandler(rootConsoleRedirectHandler);
if (consoleHandler != null) {
HttpHandler readinessHandler = new RedirectReadinessHandler(securityRealm, new BlockingHandler(consoleHandler),
ErrorContextHandler.ERROR_CONTEXT);
pathHandler.addPath(consoleHandler.getContext(), readinessHandler);
}
HttpHandler readinessHandler = new DmrFailureReadinessHandler(securityRealm, secureDomainAccess(domainApiHandler, securityRealm), ErrorContextHandler.ERROR_CONTEXT);
pathHandler.addPath(DomainApiCheckHandler.PATH, readinessHandler);
}
