code: function(params) {
          var data = {
            type: params.message.type
          };
  
          if (params.message.trackerId) {
            data.trackerId = params.message.trackerId;
          }
  
          try {
            if (params.message.content) {
              data.content = JSON.stringify(params.message.content);
            }
  
            if (client) {
              var frame = client.send({
                "destination": params.destination
              });
  
              frame.write(JSON.stringify(data));
              frame.end();
            }
          } catch (error) {
            fireEvent("error", {
              errorCode: 999,
              errorMessage: "Error in ActiveMQ Send Message!",
              errorEvent: error
            });
          }
        }
docs: *****************************************************
  P R I V A T E   M E T H O D S            *
  *****************************************************