static ApplicationInstanceReference toApplicationInstanceReference(ApplicationId applicationId, Zone zone) {
        TenantId tenantId = new TenantId(applicationId.tenant().toString());
        ApplicationInstanceId applicationInstanceId = toApplicationInstanceId(applicationId, zone);
        return new ApplicationInstanceReference(tenantId, applicationInstanceId);
    }
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