if (! CommunityDbUtils.dumpCommunityXML(f.getAbsolutePath() + "communities.xml", getCommAsbID())) log.error("Couldn't write communities.xml file");
  public void dumpINIFiles() {    // FIXME:    // If this Exp's society's assembly has entries in the oplan     // tables, then must save out what the assembly ID is such     // that on load of the INI files we can preserve the OPLAN INFO    // Generate the complete Society    generateCompleteSociety();    ExperimentINIWriter cw = new ExperimentINIWriter(completeSociety);     cw.setTrialID(getTrialID());    File resultDir = getResultDirectory();    // if user didn't specify results directory, save in local directory    if (resultDir == null) {      resultDir = new File(".");    }    Trial trial = getTrials()[0];    String dirname = resultDir.getAbsolutePath() + File.separatorChar +       getExperimentName() + File.separatorChar +      trial.getShortName() + File.separatorChar +      "INIFiles-dump";    File f = null;    try {      f = new File(dirname);      // guarantee that directories exist      if (!f.exists() && !f.mkdirs() && !f.exists()) 	f = new File(".");    } catch (Exception e) {      JOptionPane.showMessageDialog(null, "Couldn't create results directory: " + e, "Can't create directory", JOptionPane.ERROR_MESSAGE);      if(log.isErrorEnabled()) {        log.error("Couldn't create results directory: ", e);      }    }    if (f != null) {      try {	JOptionPane.showMessageDialog(null, "Writing ini file to " + f.getAbsolutePath() + "...");	cw.writeConfigFiles(f);	// FIXME: Also, write out the community XML file	// if (! ConfigDbUtils.dumpCommunityXML(f.getFullPath() + "communities.xml", getCommAsbID())) 	// log.error("Couldn't write communities.xml file");      } catch (Exception e) {        if(log.isErrorEnabled()) {          log.error("Couldn't write ini files: ", e);        }      }    }  }