KARAF-2762 Refactored CommandExporter and implemented removal on stop
[KARAF-1075] Use factoryPid when feature create a factory configuration