public void run() {
        /* Run our little CLI */
        ConsoleReader reader;
                 
        try {
            reader = new ConsoleReader(in, out);
        } catch (IOException e) {
            out.println("Unable to initialize console.");
            e.printStackTrace(out);
            return;
        }
        
        reader.addCompletor (new jline.SimpleCompletor (new String [] { "quit", "help", "exit", "status", "kick", "new", "list", "list", "threads", "ps", "actors" }));

        out.println("Server started");

        while (server.isRunning()) {
            try {
                processCliCommand(reader.readLine("server# "));
            } catch (Exception e) {
                out.println("Exception: " + e);
                e.printStackTrace(out);
            }
        }
    }