Adding API function for copy files and remove the validation of the X-Generator.
Remove the expection because there is no exception thrown.
Merge branch 'SCHOLAR-3.x' into 4373-handling-errors
Bring back the X-Generator vlidation.
Update os_profiles.module

Removing header validation again
Merge pull request #5168 from openscholar/4373-handling-errors

Adding API function for copy files and remove the validation of the X-Generator.