add utility function for dealing with Resource Conflicts when saving doc...

...uments