Used getMethods instead of getDeclaredMethods in ReflectProxy