Version 4

    The MessageBuilder is used to build API Message

     

        MessageBuilder msgBuilder = MessageBuilderService.locateMessageBuilder()
        Message msg = msgBuilder.newMessage("RequestData").
        addProperty("Name", "Kermit").
        addProperty("From", "MUC").
        addProperty("To", "NYC").
        addProperty("Date", "25-Jul-2008").
        addProperty("Seats", "2");
        getMessage();