if(interestingChange && csm.isLeader(thisAgent) && logger.isInfoEnabled()) {
if(interestingChange && isLeader(thisAgent) && logger.isInfoEnabled()) {
  public void statusChanged(CommunityStatusChangeEvent[] csce,                            CommunityStatusModel csm) {    boolean interestingChange = false;    for(int i = 0; i < csce.length; i++) {      if(logger.isDebugEnabled()) {        logger.debug(csce[i].toString());      }      if(csce[i].membersAdded() || csce[i].membersRemoved()) {        processMembershipChanges(csce[i], csm);        interestingChange = true;      }      if(csce[i].stateChanged()) {        processStatusChanges(csce[i], csm);        interestingChange = true;      }      if(csce[i].leaderChanged()) {        processLeaderChanges(csce[i], csm);        if(!(csce[i].getCurrentLeader() == null && csce[i].getPriorLeader() == null))          interestingChange = true;      }      if(csce[i].locationChanged()) {        processLocationChanges(csce[i], csm);      }      if(csce[i].stateExpired()) {        processStatusExpirations(csce[i], csm);      }    }    if(interestingChange && csm.isLeader(thisAgent) && logger.isInfoEnabled()) {      logger.info(statusSummary());    }  }