boolean haveRunningNode = false; runStart = new Date(); for (int i = 0; i < nodesToRun.length; i++) {
final int interNodeStartDelay = delay;  for (int i = 0; i < nodeCreationInfoList.size(); i++) {
  private void createNodes() {    // first set configuration file name in all node components    for (int i = 0; i < nodesToRun.length; i++) {      NodeComponent nodeComponent = nodesToRun[i];      ((ConfigurableComponent)nodeComponent).addProperty("ConfigurationFileName",                                 nodeComponent.getShortName() + currentTrial);    }    String tmp =      Parameters.findParameter("org.cougaar.tools.csmart.startdelay");    int delay = 1;    if (tmp != null) {      try {        delay = Integer.parseInt(tmp);      } catch (NumberFormatException nfe) {      }    }    boolean haveRunningNode = false;    runStart = new Date();    for (int i = 0; i < nodesToRun.length; i++) {      try {        Thread.sleep(delay);      } catch (Exception e) {      }      NodeComponent nodeComponent = nodesToRun[i];      if (createNode(nodeComponent, hostsToRunOn[i]))	haveRunningNode = true;    }    if (!haveRunningNode) {      runButton.setSelected(false);      runButton.setEnabled(true);      unsetTrialValues();      currentTrial--;    }  }