Redundant instanceof check is redundant
Switch from XC_MethodHook to XC_MethodReplacement for resolveAttribute