code: private void encodeObjectBody(StringBuffer result, JsJmsObjectMessage msg) throws MessageEncodeFailedException{
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "encodeObjectBody");
      try {
        byte[] body = msg.getSerializedObject();
        if (body != null) {
          result.append('~');
          HexString.binToHex(body, 0, body.length, result);
        }
      }
      catch (ObjectFailedToSerializeException ofse) {
        // This should not be possible, as updateDataFields will have been called
        // earlier so any unserializable object will already have been dealt with.
        FFDCFilter.processException(ofse, "com.ibm.ws.sib.mfp.impl.WebJsJmsMessageEncoderImpl.encodeObjectBody", "225");
        throw new MessageEncodeFailedException(ofse);
      }
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "encodeObjectBody");
    }
docs: Encode an object message body