// If there was an old copy of that index, delete it
Index oldFromSameCluster = indexes.get(desc.getClusterName());
if (null != oldFromSameCluster) {
logger.debug("erasing old index for cluster \"" + desc.getClusterName() + "\".");
oldFromSameCluster.eraseFromDisk();
}
// add it to current indexes
indexes.put(desc.getClusterName(),index);