public static InvocationHandler create( final Object delegate )
{
SecurityManager s = System.getSecurityManager();
if (s != null) {
s.checkPermission(new DynamicAccessPermission("access"));
}
return new InvocationHandler() {
public Object invoke( Object proxy, Method method, Object[] args )
throws Throwable
{