public Map<TenantName, Set<ApplicationInfo>> getModelsPerTenant() {
        Map<TenantName, Set<ApplicationInfo>> newModels = new LinkedHashMap<>();

        this.models.forEach((key, value) -> {
            if (!newModels.containsKey(key.tenant())) {
                newModels.put(key.tenant(), new LinkedHashSet<>());
            }
            newModels.get(key.tenant()).add(value);
        });
        return newModels;
    }
The SuperModel contains the ApplicationInfo of all active applications
config-model-api/src/main/java/com/yahoo/config/model/api/SuperModel.java