logger.info("Setting update interval attribute: interval=" + newInterval);
logger.debug("Setting update interval attribute: interval=" + newInterval);
  private void processCommunityChanges(Collection communities) {    for(Iterator it = communities.iterator(); it.hasNext(); ) {      Community community = (Community)it.next();      if (model == null) {        initializeModel(community.getName());      }      long interval = model.getLongAttribute(CURRENT_STATUS_UPDATE_ATTRIBUTE);      if (interval <= 0) { // Current status update interval not defined yet        // Get default interval        long newInterval = getLongAttribute(STATUS_UPDATE_ATTRIBUTE, updateInterval);        if (newInterval > 0) {          // Add to community          logger.info("Setting update interval attribute: interval=" + newInterval);          changeAttributes(community,                           null,                           new Attribute[]{new BasicAttribute(CURRENT_STATUS_UPDATE_ATTRIBUTE, Long.toString(newInterval))});        }      }      long tmp = getLongAttribute(CURRENT_STATUS_UPDATE_ATTRIBUTE, updateInterval);      if (nodeStatusRelay == null && myType.equalsIgnoreCase("Node")) {        AgentStatus agentStatus[] = getLocalAgentStatus(community.getName());        NodeStatusRelayImpl nsr =            new NodeStatusRelayImpl(agentId,                                    community.getName(),                                    controller.getNormalState(),                                    agentStatus,                                    null,                                    myHost,                                    uidService.nextUID());        nodeStatusRelay = new RelayAdapter(agentId, nsr, nsr.getUID());        Set targets = findHealthMonitorPeers(community);        for(Iterator it1 = targets.iterator(); it1.hasNext(); ) {          MessageAddress target = (MessageAddress)it1.next();          if(!target.equals(agentId))            nodeStatusRelay.addTarget(target);        }        blackboard.publishAdd(nodeStatusRelay);        if(logger.isDebugEnabled()) {          logger.debug("publishAdd NodeStatusRelay:" +                       " targets=" + targetsToString(nodeStatusRelay.getTargets()) +                       " community=" + community.getName() +                       " agents=" + agentStatus.length);        }      }      model.update(community);    }  }