.mapping(Constants.DEFAULT_MAPPING_TYPE, mapping)
.settings(settingsBuilder.build())
.template(template.template());
for (ObjectObjectCursor<String, AliasMetaData> container : response.getIndexTemplates().get(0).aliases()) {
Alias alias = new Alias(container.key);
request.alias(alias);
}
transportPutIndexTemplateAction.execute(request, new ActionListener<PutIndexTemplateResponse>() {
@Override
public void onResponse(PutIndexTemplateResponse putIndexTemplateResponse) {
templateFuture.set(null);