dest = RestartDestinationLocator.getRestartLocation(agentNames[i], set);
dest = restartLocator.getRestartLocation(agentNames[i], set);
  public void execute() {    if ((wakeAlarm != null) &&        ((wakeAlarm.hasExpired()))) {      moveNext();            // do next local move      sendRemoteRequests();  // Send queued move requests to remote agent      wakeAlarm = new WakeAlarm((new Date()).getTime() + TIMER_INTERVAL);      alarmService.addRealTimeAlarm(wakeAlarm);    }    // Get AgentControl objects    for (Iterator it = agentControlSub.iterator(); it.hasNext();) {      moveUpdate(it.next());    }    for (Iterator it = healthMonitorRequests.getAddedCollection().iterator(); it.hasNext(); ) {      HealthMonitorRequest hsm = (HealthMonitorRequest) it.next();      if (logger.isDebugEnabled()) {        logger.debug("Received HealthMonitorRequest:" + hsm);      }      if (hsm.getRequestType() == HealthMonitorRequest.MOVE) {        String agentNames[] = hsm.getAgents();        for (int i = 0; i < agentNames.length; i++) {          String orig = hsm.getOriginNode();          if (orig.equals("") || orig == null) {            orig = model.getLocation(agentNames[i]);          }          String dest = hsm.getDestinationNode();          if (dest.equals("") || dest == null) {            HashSet set = new HashSet();            set.add(hsm.getOriginNode());            dest = RestartDestinationLocator.getRestartLocation(agentNames[i], set);          }          if (orig.equals(nodeId.getAddress()))            moveAgent(agentNames[i], dest);          else {            moveAgent(agentNames[i], orig, dest, hsm.getCommunityName());          }        }      }    }  }