code: private HttpMessage convertOutboundMessage(Message message) {
          HttpMessage httpMessage;
          if (message instanceof HttpMessage) {
              httpMessage = (HttpMessage) message;
          } else {
              httpMessage = new HttpMessage(message);
          }
          return httpMessage;
      }
docs: Converts the outbound Message object into a HttpMessage
  @param message The message to convert
  @return The converted message as HttpMessage