code: public static String msgToString(AbstractMessage message)
     {
       if (message == null) return STRING_NULL;
       if (message instanceof JsMessage) return message + "[" + ((JsMessage)message).getSystemMessageId() + "]";
       return message.toString();
     }
docs: Util to trace the System Message ID (where available) of a message along with the default toString