public Properties save(){
  try {
    try (OutputStream out=FileUtils.newOutputStream(fileName,false)){
      properties.store(out,MAGIC);
    }
     lastWrite=FileUtils.lastModified(fileName);
    if (trace.isDebugEnabled()) {
      trace.debug("save " + properties);
    }
    return properties;
  }
 catch (  IOException e) {
    throw getExceptionFatal("Could not save properties " + fileName,e);
  }
}

public Properties save ( ) { try { try ( OutputStream out = FileUtils . newOutputStream ( fileName , false ) ) { properties . store ( out , MAGIC ) ; } lastWrite = FileUtils . lastModified ( fileName ) ; if ( trace . isDebugEnabled ( ) ) { trace . debug ( "save " + properties ) ; } return properties ; } catch ( IOException e ) { throw getExceptionFatal ( "Could not save properties " + fileName , e ) ; } }
save the lock file .
