Added ContentStore.replaceContent(osd, file, repository) as a safer method to replace an object's content.