code: protected void logResponse(String logMessage, MessageContext messageContext, boolean incoming) throws TransformerException {
          if (messageContext.hasResponse()) {
              if (messageContext.getResponse() instanceof SoapMessage) {
                  logSoapMessage(logMessage, (SoapMessage) messageContext.getResponse(), incoming);
              } else {
                  logWebServiceMessage(logMessage, messageContext.getResponse(), incoming);
              }
          }
      }
docs: Logs response message from message context if any. SOAP messages get logged with envelope transformation
  other messages with serialization.
  
  @param logMessage
  @param messageContext
  @param incoming
  @throws TransformerException