.createIndex(indexName, indexType.toString(), new OSimpleKeyIndexDefinition(keyTypes), null, null, metadataDoc, engine);
else if (serializerKeyId != 0) {
idx = database
.getMetadata()
.getIndexManager()
.createIndex(indexName, indexType.toString(), new ORuntimeKeyIndexDefinition(serializerKeyId), null, null, metadataDoc,
engine);
} else
idx = database.getMetadata().getIndexManager()
.createIndex(indexName, indexType.toString(), null, null, null, metadataDoc, engine);
} else {