Get the underlying message object

@return The underlying message object
11477
@Override
    public JsMessage getMessage()
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(tc, "getMessage");

        // We hold a reference to the root JsMessage so that an individual subscription
        // can choose to release its reference to it withour wiping it out for all the
        // others.

        // Try to get hold of the reference without using a lock, if that works then great...
        JsMessage localMsg = jsMsg;

        // Otherwise we need to lock it down and retrieve the message from the root message
        // (who may need to restore it from the MsgStore)
        if (localMsg == null)
        {
            synchronized (this)
            {
                jsMsg = getMessageItem().getMessage();
                localMsg = jsMsg;
            }
        }

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(tc, "getMessage", localMsg);

        return localMsg;
    }
720821
public MessageManager getMessageManager()
    {
        if (m_messageManager == null)
        {
        	MessageApp messageApplication = null;
        	BaseApplication app = null;
        	if (this.getRecord() != null)
        		if (this.getRecord().getRecordOwner() != null)
        			if (this.getRecord().getRecordOwner().getTask() != null)
        				app = (BaseApplication)this.getRecord().getRecordOwner().getTask().getApplication();
        	if (app != null)
        		messageApplication = app.getEnvironment().getMessageApplication(true, app.getProperties());
        	else
        		messageApplication = ((Environment)this.getDatabase().getDatabaseOwner().getEnvironment()).getMessageApplication(true, null);
            m_messageManager = RemoteMessageManager.getMessageManager(messageApplication);
        }
        return m_messageManager;
    }
197998
public String getFaultMessage() {
        String fmsg = null;
        Object fault = getFault();
        if (fault != null) {
            if (fault instanceof Throwable) {
                fmsg = String.format(CommonKnowledgeMessages.MESSAGES.faultEncountered() + " [%s(message=%s)]: %s", fault.getClass().getName(), ((Throwable)fault).getMessage(),
                                     fault);
            } else {
                fmsg = String.format(CommonKnowledgeMessages.MESSAGES.faultEncountered() + " [%s]: %s", fault.getClass().getName(), fault);
            }
        }
        return fmsg;
    }
1157484
def get_message(self):
        
        if not self._message:
            return None
        self._populate_message_attributes(self._message)
        return self._message
900573
public String getMessage() {
        StringBuffer sb = new StringBuffer();
        sb.append(desc);
        if (index >= 0) {
            sb.append(" near index ");
            sb.append(index);
        }
        sb.append(nl);
        sb.append(pattern);
        if (index >= 0) {
            sb.append(nl);
            for (int i = 0; i < index; i++) sb.append(' ');
            sb.append('^');
        }
        return sb.toString();
    }
155152
private ISFSObject getMessage() {
        if(messageObject != null) {
            MessageParamsClass clazz = context.getMessageParamsClass(messageObject.getClass());
            if(clazz != null) 
                return new ResponseParamSerializer().object2params(clazz.getUnwrapper(), messageObject);
        }
        if(jsonMessage != null)
            return SFSObject.newFromJsonData(jsonMessage);
        if(messageString == null)
            return new SFSObject();
        ISFSObject answer = new SFSObject();
        answer.putUtfString(APIKey.MESSAGE, messageString);
        return answer;
            
    }
231210
private String getNestedMessage(Throwable e) {
        String localMsg = e.getMessage();
        if (Utils.isEmpty(localMsg)) {
            localMsg = e.getClass().getSimpleName();
        }
        Throwable embeddedException = e.getCause();
        if (embeddedException == null) {
            return localMsg;
        }
        return localMsg + ": " + getNestedMessage(embeddedException);
    }
1774
public JSONObject getMessage() throws ActivityException {
        String message = null;
        String slackMessageName = getAttributeValueSmart(SLACK_MESSAGE);
        if (slackMessageName == null)
            throw new ActivityException("slack message attribute is not set");
        Asset template = AssetCache.getAsset(slackMessageName);

        if (template == null) {
            message = slackMessageName;
        }
        else {
            message = context.evaluateToString(template.getStringContent());
        }

        JSONObject json = new JSONObject();
        String env = ApplicationContext.getRuntimeEnvironment().toUpperCase();
        json.put("text", env + " - " + getSlackPrefix() + " - " + message);

        String altText = null;
        if (json.has("text")) {
            String text = json.getString("text");
            if (text.length() > 200)
                altText = text.substring(0, 197) + "...";
        }
        if (altText != null)
            json.put("text", altText);
        return json;
    }
946760
public static ControlMessageFactory getControlMessageFactory() {
        if (TraceComponent.isAnyTracingEnabled()
            && tc.isEntryEnabled())
            SibTr.entry(tc, "getControlMessageFactory");

        if (_controlMessageFactory == null)
            _controlMessageFactory = (ControlMessageFactory) getSingletonInstance(SIMPConstants.CONTROL_MESSAGE_FACTORY);

        if (TraceComponent.isAnyTracingEnabled()
            && tc.isEntryEnabled())
            SibTr.exit(tc, "getControlMessageFactory", _controlMessageFactory);
        return _controlMessageFactory;
    }
1231572
public MessageInfo getMessageInfo() {
        if (messageInfo == null) {
            MessageLine l = firstLine.prev;
            if (l != null && l.isInfo())
                messageInfo = new MessageInfo(l.text);
            else
                messageInfo = MessageInfo.dummyInfo;
        }
        return messageInfo;
    }
775273
public final MessageType getJsMessageType() {
        /* Get the int value and get the corresponding MessageType to return */
        Byte mType = (Byte) jmo.getField(JsHdrAccess.MESSAGETYPE);
        return MessageType.getMessageType(mType);
    }
1117766
public BaseMessageReceiver getMessageReceiver()
    {
        if (m_receiver == null)
        {
            m_receiver = this.createMessageReceiver();
            if (m_receiver != null)
                new Thread(m_receiver, "MessageReceiver").start();
        }
        return m_receiver;
    }
1362870
public byte[] getMessage() {
        byte results[] = new byte[getRequestSize()];

        results[0] = (byte)(getRequestSize() - 1);

        int offset = 1;
        for (RecordRequest record : records) {
            record.getRequest(results, offset);
            offset += record.getRequestSize();
        }
        return results;
    }
610424
public static function getMessage()
    {
        $result = static::$message;
        if (empty($result)) {
            static::setMessage(static::DEFAULT_MESSAGE);
            $result = static::$message;
        }
        return $result;
    }
784240
public String getMessage() {
	StringBuffer buf = new StringBuffer();
	if (code != UNSPECIFIED) {
	    buf.append(getCodeExplanation(code));
	}
	if (customMessage != null) {
	    buf.append(" Custom message: ");
	    buf.append(customMessage);
	}
	if (code != UNSPECIFIED) {
	    buf.append(" (error code ").append(String.valueOf(code)).append(")");
	}
	if (cause != null) {
	    buf.append(" [Nested exception message: ");
	    buf.append(cause.getMessage());
	    buf.append("]");
	}
	return buf.toString();
    }
683872
public String getMessage() {
    StringBuffer result = new StringBuffer();
    Iterator<IOException> itr = problems.iterator();
    while(itr.hasNext()) {
      result.append(itr.next().getMessage());
      if (itr.hasNext()) {
        result.append("\n");
      }
    }
    return result.toString();
  }
502772
public BaseMessage getMessage()
    {
        String strTrxID = this.getProperty(TrxMessageHeader.LOG_TRX_ID);
        if (m_strTrxID != null)
            if (m_strTrxID.equalsIgnoreCase(strTrxID))
                return m_message;   // Cached message is what you are looking for.
        m_strTrxID = null;
        m_message = null;
        if (strTrxID != null)
        {   // Good, they are referencing a transaction (access the transaction properties).
            MessageLogModel recMessageLog = (MessageLogModel)this.getRecord(MessageLogModel.MESSAGE_LOG_FILE);
            if (recMessageLog == null)
                recMessageLog = (MessageLogModel)Record.makeRecordFromClassName(MessageLogModel.THICK_CLASS, this);
            if (recMessageLog != null)
                m_message = (BaseMessage)recMessageLog.createMessage(strTrxID);
        }
        return m_message;
    }