I'm trying to imeplement a feature that allows Java to pause script executions while observing based on the example in the docs of ContextFactory. There will be untrusted scripts in my case so I need ...