public OrchestratorContext createSubcontextWithinLock() {
        // Move deadline towards past by a fixed amount to ensure there's time to process exceptions and
        // access ZooKeeper before the lock times out.
        TimeBudget subTimeBudget = timeBudget.withDeadline(timeBudget.deadline().get().minus(TIMEOUT_OVERHEAD));
        return new OrchestratorContext(this, clock, subTimeBudget, probe, largeLocks);
    }
Create OrchestratorContext to use within an application lock.
orchestrator/src/main/java/com/yahoo/vespa/orchestrator/OrchestratorContext.java