if (logger.isDebugEnabled()) { logger.debug("Have new supply tasks... setting ReconcileSupplyExpander alarm");
if (logger.isInfoEnabled()) { logger.info("Have new supply tasks... setting ReconcileSupplyExpander alarm");
  public void determineCommStatus(IncrementalSubscription commStatusSub, Collection addedSupply) {    Collection addedComms = commStatusSub.getAddedCollection();    Collection changedComms = commStatusSub.getChangedCollection();    //    updateCommStatus(commStatusSub.getAddedCollection(), addedSupply);    //    updateCommStatus(commStatusSub.getChangedCollection(), addedSupply);    updateCommStatus(addedComms, addedSupply);    updateCommStatus(changedComms, addedSupply);    //if there aren't any comms status subscription changes, but we are waiting on addedSupply    //check things out to see its time to add the alarm    if ( (addedComms.isEmpty()) && (changedComms.isEmpty())        && (!commStatusSub.isEmpty()) && (!addedSupply.isEmpty()) ) {      for (Iterator iter = commStatusSub.iterator(); iter.hasNext();) {        CommStatus cs = (CommStatus) iter.next();        String customerName = cs.getConnectedAgentName();        CustomerState state = (CustomerState) customerStates.get(customerName);        if ( (state != null) && (state.getCommsUpAlarm() == null) && (! state.hasStateExpired()) ) {          if ( (state.isCommsUp()) && (cs.isCommUp()) ) {            Alarm alarm = inventoryPlugin.addAlarm(inventoryPlugin.getCurrentTimeMillis() +                                                                                COMMS_UP_DELAY);            state.setCommsUpAlarm(alarm);            if (logger.isDebugEnabled()) {              logger.debug("Have new supply tasks... setting ReconcileSupplyExpander alarm");            }          }        }      }    }  }