if (logger.isDebugEnabled() && debugAgent()) { logger.debug("Alarm expired on customer " + entry.getKey()); } state.setCommsUpAlarm(null); reconcile((String) entry.getKey(), state);
  public void checkCommStatusAlarms() {    for (Iterator iter = customerStates.entrySet().iterator(); iter.hasNext();) {      Map.Entry entry = (Map.Entry) iter.next();      CustomerState state = (CustomerState) entry.getValue();      Alarm thisAlarm = state.getCommsUpAlarm();      if (thisAlarm != null && thisAlarm.hasExpired()) {        if (logger.isDebugEnabled() && debugAgent()) {          logger.debug(" The expire time is " + new Date(thisAlarm.getExpirationTime()) + "  the current time is " +                       new Date(inventoryPlugin.getCurrentTimeMillis()));        }        if (logger.isDebugEnabled() && debugAgent()) {          logger.debug("Alarm expired on customer " + entry.getKey());        }        state.setCommsUpAlarm(null);        reconcile((String) entry.getKey(), state);      }    }  }