Don't call Proxy.isProxyClass() as it hits  static lock