@Override
        public void serialize(Map<String, EsDynamicTemplate> templateMap, JsonGenerator gen, SerializerProvider serializers) throws IOException {
            gen.writeStartArray(templateMap.size());
            for (Map.Entry<String, EsDynamicTemplate> entry : templateMap.entrySet()) {
                gen.writeStartObject();
                gen.writeObjectField(entry.getKey(), entry.getValue());
                gen.writeEndObject();
            }
            gen.writeEndArray();
        }
Build and validate instance of {@link EsIndexProperties}
@return a new {@link EsIndexProperties} with the configuration provided in this builder
common/es/src/main/java/io/apiman/common/es/util/builder/index/EsIndexProperties.java