private List<Services.Builder> getServices(HostResource modelHost) {
        List<Services.Builder> ret = new ArrayList<>();
        for (Service modelService : modelHost.getServices()) {
            ret.add(new Services.Builder()
                    .name(modelService.getServiceName())
                    .type(modelService.getServiceType())
                    .configid(modelService.getConfigId())
                    .clustertype(modelService.getServicePropertyString("clustertype", ""))
                    .clustername(modelService.getServicePropertyString("clustername", ""))
                    .index(Integer.parseInt(modelService.getServicePropertyString("index", "999999")))
                    .ports(getPorts(modelService))
            );
        }
        return ret;
    }
Prepares the model for start. The {@link VespaModel} calls
this methods after it has loaded this and all plugins have been loaded and
their initialize() methods have been called.

@param plugins All initialized plugins of the vespa model.
config-model/src/main/java/com/yahoo/config/model/ApplicationConfigProducerRoot.java