PR: MNG-613 revert previous flushing of metadata as not all metadata is attached during transformation instead fix the problem of setting of local copy directly