I think creating a map for all possible categories and which has the category name as key and category ID as value would be better. That way you don't have to use magic numbers and switching to a different category in the future will be easier.