code: public void setPersistedFile(File file) throws FileNotFoundException
     {
        if (file instanceof SwapFile)
        {
           ((SwapFile)file).acquire(this);
        }
  
        this.file = file;
  
        // JCR-2326 Release the current ValueData from tempFile users before
        // setting its reference to null so it will be garbage collected.
        if (this.tempFile != null)
        {
           this.tempFile.release(this);
           this.tempFile = null;
        }
  
        this.stream = null;
     }
docs: Sets persistent file. Will reset (null) temp file and stream. This method should be called only from
  persistent layer (Value storage).
  
  @param file File
  @throws FileNotFoundException