for (Iterator it = btreeIndexes.iterator(); it.hasNext();) {
final IndexDefinition indexDef = (IndexDefinition)it.next();
final String jispIndexType = getJispIndexType(indexDef.getType());
ObjectFactory factory = new DefaultObjectFactory(jispIndexType);
final StringBuffer indexFile = new StringBuffer();
indexFile.append(m_indexDir);
indexFile.append(File.separator);
indexFile.append(indexDef.getName());
File killit = new File(indexFile.toString());
if (killit.exists()) killit.delete();
final BTreeIndex index = new BTreeIndex(
indexFile.toString(),
INDEX_ORDER,
(KeyObject)factory.newInstance(),
false, m_loader);
indexes.add(index);
m_jispIndexes.put(indexDef.getName(), index);