// Get the command service
List<String> tokens = Arrays.asList(cmdstr.split("\\s"));
String[] header = tokens.get(0).split(":");
Assert.assertTrue("Two tokens in: " + tokens.get(0), header.length == 2);
String filter = "(&(osgi.command.scope=" + header[0] + ")(osgi.command.function=" + header[1] + "))";
AbstractCommand command = (AbstractCommand) ServiceLocator.awaitService(Function.class, filter);
commandSession.put(AbstractCommand.class.getName(), command);
Class<?> actionClass = command.getActionClass();
LOGGER.debug("Using action: {} from {}", actionClass, actionClass.getClassLoader());
boolean keepRunning = true;
while (!Thread.currentThread().isInterrupted() && keepRunning) {
try {