startupCompleted = true;
  protected void checkCommunityReady() {    if (thisAgent.equals(preferredLeader()) &&        isLeader(thisAgent) &&        communityReady == false &&        agentsAndLocationsActive()) {      communityReady = true;      event("Community " + model.getCommunityName() + " Ready");      if (pingStats.getCount() > 10) {        long oldPingTimeout = getLongAttribute("PING_TIMEOUT", PING_TIMEOUT);        long newPingTimeout = (long)pingStats.getMean() + ((long)pingStats.getStandardDeviation() * 4);        long minPingTimeout = getLongAttribute("MINIMUM_PING_TIMEOUT", MINIMUM_PING_TIMEOUT);        if (newPingTimeout < minPingTimeout) newPingTimeout = minPingTimeout;        logger.info("Change PingTimeout: old=" + oldPingTimeout +                    " new=" + newPingTimeout + " PingStats=(" + pingStats + ")");        changeAttributes(model.getCommunityName(), null,                         new Attribute[]{new BasicAttribute("PING_TIMEOUT", Long.toString(newPingTimeout))});      }      RestartDestinationLocator.clearRestarts();    }  }