public static ServiceId getServiceId(ApplicationInfo applicationInfo, ServiceInfo serviceInfo) {
        return new ServiceId(
                applicationInfo.getApplicationId(),
                getClusterId(serviceInfo),
                toServiceType(serviceInfo),
                toConfigId(serviceInfo));
    }
Reverse of toApplicationInstanceId, put in this file because it its inverse is.
service-monitor/src/main/java/com/yahoo/vespa/service/model/ApplicationInstanceGenerator.java