private void saveLogFile(License license,Properties props){
  File logFile=getLogFile(license);
  logger.fine("Writing log: " + props);
  try {
    final OutputStream out=new FileOutputStream(logFile);
    try {
      props.store(out,String.format(LOG_HEADER,newDate()));
    }
  finally {
      out.close();
    }
  }
 catch (  IOException ex) {
    logger.log(Level.SEVERE,"Unable to store license log file: " + logFile.getAbsolutePath(),ex);
  }
}

private void saveLogFile ( License license , Properties props ) { File logFile = getLogFile ( license ) ; logger . fine ( "Writing log: " + props ) ; try { final OutputStream out = new FileOutputStream ( logFile ) ; try { props . store ( out , String . format ( LOG_HEADER , newDate ( ) ) ) ; } finally { out . close ( ) ; } } catch ( IOException ex ) { logger . log ( Level . SEVERE , "Unable to store license log file: " + logFile . getAbsolutePath ( ) , ex ) ; } }
save the log file for the given license , overwriting any existing log file .
