/**
  * Perform triggers specified in the incoming message
  *
  * @param message
  * @throws IllegalArgumentException
  * @throws IllegalAccessException
  * @throws InvocationTargetException
  */
 private void performTriggers(Message message)
     throws IllegalArgumentException, IllegalAccessException, InvocationTargetException {
   Log.e(TAG, "Perform Trigger");
   Trigger trigger = service.isTriggerPresent(message.getTriggerName());
   if (trigger != null)
     trigger.getMethod().invoke(appObject, message.getTriggerData(), message.getSrcServiceID());
 }
 /**
  * Get the trigger object with the trigger name
  *
  * @param triggerName
  * @return
  */
 public Trigger getTrigger(String triggerName) {
   for (Trigger trigger : service.getTriggers().values()) {
     if (trigger.getTriggerTag().equals(triggerName)) {
       return trigger;
     }
   }
   return null;
 }
  public List<String> getTriggers() {
    List<String> list = new LinkedList<String>();

    if (service.getTriggers() != null) {
      for (Trigger trig : service.getTriggers().values()) list.add(trig.getTriggerTag());
    }
    return list;
  }