public ConsoleListener(Monitor notifyOnMessage, final Logger logger) {
public ConsoleListener(Monitor notifyOnMessage, Logger logger) {
  public ConsoleListener(Monitor notifyOnMessage, final Logger logger) {    m_notifyOnMessage = notifyOnMessage;    m_messageHandler = new HandlerChainSender.MessageHandler() {      public boolean process(Message message) {        if (message instanceof StartGrinderMessage) {          logger.output("received a start message");          m_lastStartGrinderMessage = (StartGrinderMessage) message;          setReceived(START);          return true;        }        else if (message instanceof StopGrinderMessage) {          logger.output("received a stop message");          setReceived(STOP);          return true;        }        else if (message instanceof ResetGrinderMessage) {          logger.output("received a reset message");          setReceived(RESET);          return true;        }        return false;      }      public void shutdown() {        logger.output("communication shutdown", Logger.LOG);        setReceived(SHUTDOWN);      }    };  }