} if (!remoteRestartRequestQueue.isEmpty()) { sendRemoteRequests();
  public void execute() {    if (!restartsInProcess.isEmpty()) {      removeExpiredRestarts();    }    if (!restartQueue.isEmpty()) {      restartNext();    }    // Get AgentControl objects    for (Iterator it = agentControlSub.iterator(); it.hasNext();) {      update(it.next());    }    for (Iterator it = healthMonitorRequests.getAddedCollection().iterator(); it.hasNext(); ) {      HealthMonitorRequest hsm = (HealthMonitorRequest) it.next();      logger.debug("Received HealthMonitorRequest:" + hsm);      if (hsm.getRequestType() == HealthMonitorRequest.RESTART) {        String agentNames[] = hsm.getAgents();        for (int i = 0; i < agentNames.length; i++) {          restartAgent(agentNames[i]);        }      }    }  }