code: protected void logMessage(String logMessage, String message, boolean incoming) {
          if (messageListener != null) {
              log.debug(logMessage);
  
              if (incoming) {
                  messageListener.onInboundMessage(new RawMessage(message), null);
              } else {
                  messageListener.onOutboundMessage(new RawMessage(message), null);
              }
          } else {
              if (log.isDebugEnabled()) {
                  log.debug(logMessage + ":" + System.getProperty("line.separator") + message);
              }
          }
      }
docs: Performs the final logger call with dynamic message.
  
  @param logMessage a custom log message entry.
  @param message the message content.
  @param incoming