private Properties loadLogFile(License license,boolean create){
  Properties log=new Properties();
  File logFile=getLogFile(license);
  try {
    if (create && logFile.createNewFile()) {
      logger.fine("Created license log file: " + logFile.getAbsolutePath());
    }
    final InputStream in=new FileInputStream(logFile);
    try {
      log.load(in);
    }
  finally {
      in.close();
    }
  }
 catch (  FileNotFoundException ex) {
    if (create) {
      logger.log(Level.SEVERE,"Unable to create license log file: " + logFile.getAbsolutePath(),ex);
    }
 else {
      logger.fine("Log file does not yet exist");
    }
  }
catch (  IOException ex) {
    logger.log(Level.WARNING,"Unable to access license log file: " + logFile.getAbsolutePath(),ex);
  }
  return log;
}

private Properties loadLogFile ( License license , boolean create ) { Properties log = new Properties ( ) ; File logFile = getLogFile ( license ) ; try { if ( create && logFile . createNewFile ( ) ) { logger . fine ( "Created license log file: " + logFile . getAbsolutePath ( ) ) ; } final InputStream in = new FileInputStream ( logFile ) ; try { log . load ( in ) ; } finally { in . close ( ) ; } } catch ( FileNotFoundException ex ) { if ( create ) { logger . log ( Level . SEVERE , "Unable to create license log file: " + logFile . getAbsolutePath ( ) , ex ) ; } else { logger . fine ( "Log file does not yet exist" ) ; } } catch ( IOException ex ) { logger . log ( Level . WARNING , "Unable to access license log file: " + logFile . getAbsolutePath ( ) , ex ) ; } return log ; }
loads the log file for the given license and returns it .
