@Override
 public JSONObject toJSON() throws JSONException {
   JSONObject obj = new JSONObject();
   obj.put(FeedConstants.MessageConstants.MESSAGE_TYPE, messageType.name());
   obj.put(FeedConstants.MessageConstants.DATAVERSE, connectionId.getFeedId().getDataverse());
   obj.put(FeedConstants.MessageConstants.FEED, connectionId.getFeedId().getFeedName());
   obj.put(FeedConstants.MessageConstants.DATASET, connectionId.getDatasetName());
   obj.put(FeedConstants.MessageConstants.AQL, aql);
   return obj;
 }