And you should handle the exception when `resId == 0`