try
{
// the RecordManager must be re-initialized cause we are
// setting the "values" of leaves to null while building
// the tree to avoid OOM errors
partition.destroy();
rm = new RecordManager( new File( partition.getPartitionPath() ).getAbsolutePath() );
long rdnT0 = System.currentTimeMillis();
System.out.print( "Building RDN index." );