public void writeToFile(String recordFile){
  log.fine("recording interaction in file " + recordFile);
  try {
    XMLUtils.writeXMLDocument(doc,recordFile);
  }
 catch (  RuntimeException e) {
    log.warning("could not create file " + recordFile);
  }
}

public void writeToFile ( String recordFile ) { log . fine ( "recording interaction in file " + recordFile ) ; try { XMLUtils . writeXMLDocument ( doc , recordFile ) ; } catch ( RuntimeException e ) { log . warning ( "could not create file " + recordFile ) ; } }
write the recorded dialogue to a file
