final String robotIndexName = SingletonS2Container
.getComponent("robotIndexName");
final IndicesExistsResponse indicesExistsResponse = client.admin()
.indices().prepareExists(robotIndexName).execute().actionGet();
if (!indicesExistsResponse.isExists()) {
final CreateIndexResponse createIndexResponse = client.admin()
.indices().prepareCreate(robotIndexName).execute()
.actionGet();
if (createIndexResponse.isAcknowledged()) {
try {
createMapping(robotIndexName, "queue", createQueueMapping());
createMapping(robotIndexName, "filter",
createFilterMapping());
createMapping(robotIndexName, "data", createDataMapping());