Adds GUID to resource document