if (!java.util.logging.LogManager.getLogManager().getClass().getName().equals(org.jboss.logmanager.LogManager.class.getName())) {
throw LoggingMessages.MESSAGES.extensionNotInitialized();
}
LogContext.setLogContextSelector(THREAD_LOCAL_CONTEXT_SELECTOR);
// Install STDIO context selector
StdioContext.setStdioContextSelector(new LogContextStdioContextSelector(StdioContext.getStdioContext()));
// Load logging API modules
try {
final ModuleLoader moduleLoader = Module.forClass(LoggingExtension.class).getModuleLoader();
for (ModuleIdentifier moduleIdentifier : LOGGING_API_MODULES) {