private static PendingRestarts fromBytes(byte[] data) {
            Cursor root = SlimeUtils.jsonToSlimeOrThrow(data).get();
            return new PendingRestarts(SlimeUtils.entriesStream(root.field(GENERATIONS))
                                                 .collect(toMap(entry -> entry.field(GENERATION).asLong(),
                                                                entry -> SlimeUtils.entriesStream(entry.field(HOSTNAMES))
                                                                                   .map(Inspector::asString)
                                                                                   .toList())));
        }
Sets up a listenable cache with the given listener, over the applications path of this tenant.
configserver/src/main/java/com/yahoo/vespa/config/server/application/ApplicationCuratorDatabase.java