static DistributionSpecificTemplates forVersion(BaseVersion version) {
    if (version instanceof ElasticsearchVersion) {
      return new ElasticsearchSpecificTemplates.DistributionTemplate((ElasticsearchVersion) version);
    } else if (version instanceof OpensearchVersion) {
      return new OpensearchSpecificTemplates.DistributionTemplate((OpensearchVersion) version);
    } else {
      throw new IllegalArgumentException("The distribution version is not supported: " + version);
    }
  }
Creates a new {@link DistributionSpecificTemplates} instance based on the distribution
@param version distribution version
@return {@link OpensearchSpecificTemplates} or {@link ElasticsearchSpecificTemplates} instance
zipkin-storage/elasticsearch/src/main/java/zipkin2/elasticsearch/VersionSpecificTemplates.java