public boolean containsHostname(HostName hostname) {
        return applicationInfo.getModel().getHosts().stream()
                .map(HostInfo::getHostname)
                .anyMatch(hostnameString -> Objects.equals(hostnameString, hostname.s()));
    }
Class to generate an ApplicationInstance given service status for a standard (deployed) application.

@author hakon
service-monitor/src/main/java/com/yahoo/vespa/service/model/ApplicationInstanceGenerator.java