public Optional<ApplicationId> getApplicationId(DomainName hostname) {
        return Optional.ofNullable(idsByHostname.get(hostname));
    }
Note: Returns an empty set for unknown application.
service-monitor/src/main/java/com/yahoo/vespa/service/duper/DuperModel.java