This is a patch and example usage (in datasources.html) that I referred to in issue #1168