       const juris = context.juris;
                    const originalCreateContext = juris.createContext.bind(juris);
                    const originalCreateHeadlessContext = juris.createHeadlessContext.bind(juris);

                    juris.createContext = function () {
                        const ctx = originalCreateContext();
                        return { ...ctx, ...api };
                    };

                    juris.createHeadlessContext = function () {
                        const ctx = o