cservice = (CommandService)container.getComponentInstanceOfType(CommandService.class);
// login via Authenticator
Authenticator authr = (Authenticator)container.getComponentInstanceOfType(Authenticator.class);
String validUser =
authr.validateUser(new Credential[]{new UsernameCredential("root"), new PasswordCredential("exo")});
Identity id = authr.createIdentity(validUser);
ConversationState s = new ConversationState(id);
ConversationState.setCurrent(s);
ctx = new BasicAppContext(repService.getDefaultRepository());