Set resource values on -writeToURL:…