private LbServicesConfig.Tenants.Applications.Endpoints.Builder getEndpointConfig(ApplicationClusterEndpoint clusterEndpoints) {
        LbServicesConfig.Tenants.Applications.Endpoints.Builder builder = new LbServicesConfig.Tenants.Applications.Endpoints.Builder();
        return builder.dnsName(clusterEndpoints.dnsName().value())
                .scope(LbServicesConfig.Tenants.Applications.Endpoints.Scope.Enum.valueOf(clusterEndpoints.scope().name()))
                .routingMethod(LbServicesConfig.Tenants.Applications.Endpoints.RoutingMethod.Enum.valueOf(clusterEndpoints.routingMethod().name()))
                .weight(clusterEndpoints.weight())
                .hosts(clusterEndpoints.hostNames())
                .clusterId(clusterEndpoints.clusterId());
    }
Produces lb-services cfg

@author Vegard Havdal
configserver/src/main/java/com/yahoo/vespa/config/server/model/LbServicesProducer.java