if (PartitionName.isPartition(index.name())) {
String tableName = PartitionName.tableName(index.name());
// check if alias exists
if (clusterService.state().metaData().hasConcreteIndex(tableName)) {
// get DocTableInfo for virtual partitioned table
DocTableInfo info = new DocTableInfoBuilder(
docSchemaInfo,
new TableIdent(DocSchemaInfo.NAME, tableName),
clusterService, transportPutIndexTemplateAction, true).build();
assert info.isPartitioned();
int i = 0;