https://github.com/cvan/galaxy-api/pull/94/files#diff-e21ea20827948714e460fa840d741df1R174