public void onCommand(Object command) { // Changed this method to use a LogWriter object to actually // print the messages to the log, and only in case of logging // being active, instead of logging the message directly. if (logging && log.isDebugEnabled()) { logWriter.logReceivedCommand(log, command); } getTransportListener().onCommand(command); }