public static <T> T getProxy(
      Class<T> clazz, MethodInterceptor interceptor, Class[] argumentTypes, Object[] arguments) {
    Enhancer enhancer = new Enhancer();
    enhancer.setSuperclass(clazz);
    enhancer.setCallback(interceptor);
    return (T) enhancer.create(argumentTypes, arguments);
  }
A proxy util wraps an object with the kerberos authenticate ability by {@link
KerberosInvocationHandler}.
amoro-format-mixed/amoro-mixed-flink/amoro-mixed-flink-common/src/main/java/org/apache/amoro/flink/util/ProxyUtil.java