Handle proxy classes in getResourceBySupportedClass()