public ServiceModel toServiceModel(List<ApplicationInfo> allApplicationInfos,
                                       ServiceStatusProvider serviceStatusProvider) {
        Map<ApplicationInstanceReference, ApplicationInstance> applicationInstances =
                allApplicationInfos.stream()
                        .map(info -> new ApplicationInstanceGenerator(info, zone)
                                .makeApplicationInstance(serviceStatusProvider))
                        .collect(Collectors.toMap(ApplicationInstance::reference, Function.identity()));

        return new ServiceModel(applicationInstances);
    }
Create service model based primarily on super model.

If the configServerhosts is non-empty, a config server application is added.
service-monitor/src/main/java/com/yahoo/vespa/service/model/ModelGenerator.java