.mapping(Constants.DEFAULT_MAPPING_TYPE, mergedMapping)
.settings(templateMetaData.settings())
.template(templateMetaData.template());
for (ObjectObjectCursor<String, AliasMetaData> container : templateMetaData.aliases()) {
Alias alias = new Alias(container.key);
updateTemplateRequest.alias(alias);
}
transportPutIndexTemplateAction.execute(updateTemplateRequest, new ActionListener<PutIndexTemplateResponse>() {
@Override
public void onResponse(PutIndexTemplateResponse putIndexTemplateResponse) {