Adapting Karaf's console for non-OSGi use