code: public void sendMessage(String text) throws NotConnectedException, InterruptedException {
          Message message = new Message();
          message.setBody(text);
          sendMessage(message);
      }
docs: Sends the specified text as a message to the other chat participant.
  This is a convenience method for:
  
  <pre>
  Message message = chat.createMessage();
  message.setBody(messageText);
  chat.sendMessage(message);
  </pre>
  
  @param text the text to send.
  @throws NotConnectedException
  @throws InterruptedException