Some adaptation for CKAN 2.2.