private ModelContext.Properties createModelContextProperties(ApplicationId applicationId,
                                                                 Version modelVersion,
                                                                 ApplicationPackage applicationPackage) {
        return new ModelContextImpl.Properties(applicationId,
                                               modelVersion,
                                               configserverConfig,
                                               zone(),
                                               ImmutableSet.copyOf(new ContainerEndpointsCache(TenantRepository.getTenantPath(tenant), curator).read(applicationId)),
                                               false, // We may be bootstrapping, but we only know and care during prepare
                                               false, // Always false, assume no one uses it when activating
                                               LegacyFlags.from(applicationPackage, flagSource),
                                               new EndpointCertificateMetadataStore(curator, TenantRepository.getTenantPath(tenant))
                                                       .readEndpointCertificateMetadata(applicationId)
                                                       .flatMap(new EndpointCertificateRetriever(endpointCertificateSecretStores)::readEndpointCertificateSecrets),
                                               zkClient.readAthenzDomain(),
                                               zkClient.readQuota(),
                                               zkClient.readTenantVaults(),
                                               zkClient.readTenantSecretStores(),
                                               zkClient.readOperatorCertificates(),
                                               zkClient.readCloudAccount(),
                                               zkClient.readDataplaneTokens());
    }
Builds activated versions of the right model versions

@author bratseth
configserver/src/main/java/com/yahoo/vespa/config/server/modelfactory/ActivatedModelsBuilder.java