@Override
        public void run() {
            String command = "";
            while (running) {
                try {
                    if (jLine) {
                        command = consoleReader.readLine(">", null);
                    } else {
                        command = consoleReader.readLine();
                    }

                    if (command == null || command.trim().length() == 0)
                        continue;

                    server.handleCommand(command.trim());
                } catch (Exception ex) {
                    logger.log(Level.SEVERE, "Error while reading commands", ex);
                }
            }
        }