class SchemaGenerator {

  public void useKubernetesVersion(String version) throws IOException {
    KubernetesSchemaReference reference = KubernetesSchemaReference.create(version);
    URL cacheUrl = reference.getKubernetesSchemaCacheUrl();
    if (cacheUrl == null) {
      throw new IOException("No schema cached for Kubernetes " + version);
    }

    addExternalSchema(reference.getKubernetesSchemaUrl(), cacheUrl);
  }

}