// Create Index
createIndex(indexAdminService, params);
// Get specialized index to build
Set<AbstractIndexBuilder> indexBuilders = getSelectedIndexBuilders(endpoint, params);
// Return the SinkManager
Sink sink = new ElasticSearchWriterTask(endpoint, indexBuilders, params);
return new SinkManager(taskConfig.getId(), sink, taskConfig.getPipeArgs());
}