startTimer(SLEEP_INTERVAL);
resetTimer(SLEEP_INTERVAL);
  public void setupSubscriptions() {    Collection params = getParameters();    for (Iterator i = params.iterator(); i.hasNext(); ) {      String param = (String) i.next();      if (param.startsWith(SLEEP_INTERVAL_KEY)) {        SLEEP_INTERVAL = Long.parseLong(param.substring(SLEEP_INTERVAL_KEY.length()));        if (logger.isInfoEnabled()) logger.info("Set "                                                + SLEEP_INTERVAL_KEY                                                + SLEEP_INTERVAL);        continue;      }      if (param.startsWith(ACTIVITY_DELAY_KEY)) {        ACTIVITY_DELAY = Long.parseLong(param.substring(ACTIVITY_DELAY_KEY.length()));        if (logger.isInfoEnabled()) logger.info("Set "                                                + ACTIVITY_DELAY_KEY                                                + ACTIVITY_DELAY);        continue;      }    }    debug = true;//getMessageAddress().toString().equals("47-FSB");    relaySubscription = (IncrementalSubscription)      blackboard.subscribe(targetRelayPredicate);    UnaryPredicate activityPredicate = createActivityPredicate();    activitySubscription = (IncrementalSubscription)      blackboard.subscribe(activityPredicate, new AmnesiaCollection(), true);    lastActivity = System.currentTimeMillis();    startTimer(SLEEP_INTERVAL);  }