message.getLastMessage
message.getLastMessage()
Description
Returns the last message inside this message. In case of a bulk message, it is the last of the individual messages. In case of a mapped message, it is the last message after the mappers.
Example
if(message == message.getLastMessage())
api.wto(message + " has not been mapped")