if (isLeader() && isAgent(name)) {
logger.info("Expired Status:" + " agent=" + name + " state=INITIAL"); if (isLeader(thisAgent) && isAgent(name)) {
    public void expired(String name) {      if (isLeader() && isAgent(name)) {        newState(name, HEALTH_CHECK);      }    }