setLocation(allAgents[i], thisAgent); setCurrentState(allAgents[i], LOCATED);
setLocationAndState(allAgents[i], thisAgent, LOCATED);
  private void findLocalAgents() {    String allAgents[] = listAllEntries();    for (int i = 0; i < allAgents.length; i++) {      MessageAddress addr = MessageAddress.getMessageAddress(allAgents[i]);      if (nodeControlService.getRootContainer().containsAgent(addr)) {        if (!thisAgent.equals(getLocation(allAgents[i]))) {          setLocation(allAgents[i], thisAgent);          setCurrentState(allAgents[i], LOCATED);          logger.debug("Found agent " + allAgents[i] + " at node " + thisAgent);        }      }    }  }