public synchronized Set<Bundle> completeGeneration(GenerationStatus status) {
        Set<Bundle> ret = Set.of();
        if (readyForNewBundles) return ret;

        readyForNewBundles = true;
        if (status == GenerationStatus.SUCCESS) {
            return commitBundles();
        } else {
            return revertToPreviousGeneration();
        }
    }
Must be called after useBundles() to report success or failure for the latest bundle generation.
container-core/src/main/java/com/yahoo/container/core/config/ApplicationBundleLoader.java