Adjusting reflection code to load methods from superclass.