if (isLocal(name) || isLeader()) { logger.info("expired: state=ACTIVE agent=" + name);
if ((isLocal(name) || isNode(name)) || (thisAgent.equals(preferredLeader()) && getState(getLocation(name)) == DEAD) || isLeader(name)) { newState(name, HEALTH_CHECK);
    public void expired(String name) {      if (isLocal(name) || isLeader()) {        logger.info("expired: state=ACTIVE agent=" + name);      }      newState(name, HEALTH_CHECK);    }