static A nuLike proxy(Class intrface, final O target) { if (target == null) null; if (isInstance(intrface, target)) ret (A) target; ret (A) java.lang.reflect.Proxy.newProxyInstance(intrface.getClassLoader(), new Class[] { intrface }, new proxy_InvocationHandler(target)); } static A proxy(O target, Class intrface) { ret proxy(intrface, target); }