docs: protected Class<?> getBeanClass(String beanName) {
          Class<?> clazz = context.getType(beanName);
          while (Proxy.isProxyClass(clazz) || Enhancer.isEnhanced(clazz)) {
              clazz = clazz.getSuperclass();
          }
          return clazz;
      }