LOG.debug("Using Karaf 3.x Console API");
ServiceReference ref = bundleContext.getServiceReference(KARAF3_CONSOLE_FACTORY);
if (ref != null) {
ConsoleFactory factory = (ConsoleFactory) bundleContext.getService(ref);
Console console = factory.create(commandProcessor, threadIO, in, pipedOut, pipedOut, new WebTerminal(TERM_WIDTH, TERM_HEIGHT), null, null);
return console;
}
return null;
}