@mrvisser: This means that it is impossible to add a new resource type without changing the core code. I'd rather have us check the registered search/resource types, rather than check the SearchConstants.general.RESOURCE_TYPES constant.