I still don't think SearchConstants.general.RESOURCE_TYPES should be enumerating all of the available types. For the sake of extensibility, the available types should be based on the types that have registered upon startup. Therefore, I think the SearchConstants.general.RESOURCE_TYPES should be removed in favour of a more dynamic list.