*/
public void addIndex(IndexerDefinition indexerDefinition, long timeout,
boolean waitForIndexerModel, boolean waitForSep, boolean waitForIndexerRegistry) throws Exception {
long tryUntil = System.currentTimeMillis() + timeout;
WriteableIndexerModel indexerModel = getIndexerModel();
indexerModel.addIndexer(indexerDefinition);
if (waitForIndexerModel) {
// Wait for subscriptionId to be known by indexerModel
String subscriptionId = waitOnIndexSubscriptionId(indexerDefinition.getName(), tryUntil, timeout);
if (subscriptionId == null) {