public class JSONRPCBridgeWOSessionArgResolver implements LocalArgResolver {
public Object resolveArg(Object obj) throws LocalArgResolveException {
if (!(obj instanceof WOContext)) {
throw new LocalArgResolveException("Invalid context.");
}
WOSession session = ((WOContext) obj).session();
return session.valueForKey("JSONRPCBridge");
}