final MongoCollection collection = resolveOrCreateCollection(collectionName);
indexes.addDocument(indexDescription);
BSONObject key = (BSONObject) indexDescription.get("key");
if (key.keySet().equals(Collections.singleton("_id"))) {
boolean ascending = Utils.normalizeValue(key.get("_id")).equals(Double.valueOf(1.0));
collection.addIndex(new UniqueIndex("_id", ascending));
log.info("adding unique _id index for collection {}", collectionName);
} else if (Utils.isTrue(indexDescription.get("unique"))) {
if (key.keySet().size() != 1) {