Have raw file bean flush file metadata.

Will need to be rebased back to dev_4_4.