code: public ChatMessage createFinalMessage(MessageSentResponse response) {
          return ChatMessage.builder()
                  .setMessageId(response.getId())
                  .setSentEventId(response.getEventId())
                  .setConversationId(conversationId)
                  .setSentBy(sender)
                  .setFromWhom(new Sender(sender, sender))
                  .setSentOn(System.currentTimeMillis())
                  .setParts(getAllParts())
                  .setMetadata(originalMessage.getMetadata()).build();
      }
docs: Create a final message for a conversation. At this point we know message id and sent event id.
  
  @param response Response from sending message call.
  @return Final message to be saved in persistance store.