Preparing a text message,
This is only the build part of the send from here the message will passed to "sendMessage" Method.
From there the message will be uploaded to the server if the upload fails the message will be deleted from the local db.
If the upload is successful we will update the message entity so the entityId given from the server will be saved.
The message will be received before sending in the onMainFinished Callback with a Status that its in the sending process.
When the message is fully sent the status will be changed and the onItem callback will be invoked.
When done or when an error occurred the calling method will be notified.