if (GrapheneProxy.isProxyInstance(target)) {
context = ((GrapheneProxyInstance) target).getContext();
} else {
context = context();
}
return new RequestGuardFactory(
JSInterfaceFactory.create(context, RequestGuard.class),
JSInterfaceFactory.create(context, Document.class),
context);
}