properties.remove("org.cougaar.core.cluster.persistence.clear");
  public NodeServesClient restartNode(NodeComponent nodeComponent) {    if (oldNodes.size() + runningNodes.size() == 1) {      runButton_actionPerformed();      return null; // it doesn't matter what we return, the caller is going away    }    CommunityServesClient communitySupport = new ClientCommunityController();    HostServesClient hostServer = null;    Properties properties = getNodeMinusD(nodeComponent);    String[] args = getNodeArguments(nodeComponent);    // get host component by searching hosts for one with this node.    String hostName = null;    HostComponent[] hosts = experiment.getHosts();    for (int i = 0; i < hosts.length; i++) {      NodeComponent[] nodes = hosts[i].getNodes();      for (int j = 0; j < nodes.length; j++) {        if (nodes[j].equals(nodeComponent)) {          hostName = hosts[i].getShortName();          break;        }      }    }    try {      hostServer =         communitySupport.getHost(hostName, getAppServerPort(properties));    } catch (Exception e) {      System.out.println(e);      return null;    }    // close the log file and remove the old node event listener    String nodeName = nodeComponent.getShortName();    ConsoleNodeListener listener =       (ConsoleNodeListener)nodeListeners.remove(nodeName);    listener.closeLogFile();    // reuse old document    ConsoleStyledDocument doc = listener.getDocument();    // create a node event listener to get events from the node    String logFileName = getLogFileName(nodeName);    try {      listener = new ConsoleNodeListener(this,					 nodeComponent,                                         logFileName,					 getNodeStatusButton(nodeName),                                         doc);    } catch (Exception e) {      System.err.println("Unable to create output for: " + nodeName);      e.printStackTrace();      return null;    }    if (displayFilter != null)      listener.setFilter(displayFilter);    nodeListeners.put(nodeName, listener);    NodeServesClient nsc = null;    try {      nsc = hostServer.createNode(nodeName, properties, args,                                  listener, new NodeEventFilter(10), null);      if (nsc != null)        runningNodes.put(nodeComponent, nsc);    } catch (Exception e) {      System.out.println(e);    }    return nsc;  }