private static void requireClusterId(Context context, List<ContainerModel> containers, InstanceName instanceName,
                                         String endpoint, String id) {
        if (containers.stream().noneMatch(container -> container.getCluster().getName().equals(id)))
            context.illegal(endpoint + " in instance " + instanceName + ": '" + id +
                            "' specified in deployment.xml does not match any container cluster ID");
    }
Validate deployment spec (deployment.xml).

@author hmusum
@author bratseth
config-model/src/main/java/com/yahoo/vespa/model/application/validation/DeploymentSpecValidator.java