private <T> T get(Map<Path, T> values, Path path, Supplier<T> loader) {
            return values.compute(path, (key, value) -> {
                if (value == null) {
                    statistics.recordMisses(1);
                    return loader.get();
                }
                statistics.recordHits(1);
                return value;
            });
        }
Create an empty snapshot at a given generation (as an empty snapshot is a valid partial snapshot)
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/persistence/CachingCurator.java