  // Debug: Check if headless APIs are properly injected
        setTimeout(() => {
            console.log('=== Debugging Headless API Injection ===');
            console.log('juris.headlessAPIs:', juris.headlessAPIs);
            console.log('headlessManager.context:', juris.headlessManager.context);
            console.log('headlessManager.getAllAPIs():', juris.headlessManager.getAllAPIs());

            const testContext = juris.createContext();
            console.log('Context has useState?', 'useStat