code: @Override
      public void received(String msg) throws IOException {
          try {
              if (log.isDebugEnabled()) {
                  log.debug("<---'" + msg + "'");
              }
              filter.run(msg, cmdBuf);
              cmdBuf.takeStep(controller, parser, this);
              while (commandFactory.hasNext()) {
                  String cmd = commandFactory.next();
                  if (log.isDebugEnabled()) {
                      log.debug("--->'" + cmd + "'");
                  }
                  send(cmd);
                  pause(50);
              }
          } catch (Exception ex) {
              log.error("Error while receiving message: " + msg + " " + ex.getMessage(), ex);
          }
      }
docs: {@inheritDoc}