User variable replacement support in FileResource.