if (experiment != null) {
if (experiment != null && usingExperiment) {
  private void saveResults() {    if (currentTrial < 0)      return; // nothing to save    String dirname = makeResultDirectory();    if (experiment != null) {      try {        String myHostName = InetAddress.getLocalHost().getHostName();        URL url = new URL("file", myHostName, dirname);        Trial trial = experiment.getTrials()[currentTrial];        trial.addTrialResult(new TrialResult(runStart, url));      } catch (Exception e) {        if(log.isErrorEnabled()) {          log.error("Exception creating trial results URL: ", e);        }      }    }    Collection values = nodeToNodeInfo.values();    for (Iterator i = values.iterator(); i.hasNext(); ) {      NodeInfo ni = (NodeInfo)i.next();      RemoteHost remoteAppServer = ni.appServer;      RemoteFileSystem remoteFS = null;      try {        remoteFS = remoteAppServer.getRemoteFileSystem();      } catch (Exception e) {        JOptionPane.showMessageDialog(this,            "Cannot save results.  Unable to access filesystem for " +             ni.hostName + ".",            "Unable to access file system",            JOptionPane.WARNING_MESSAGE);        continue;      }      copyResultFiles(remoteFS, dirname);    }  }