prep.prepare(doc);
content = prep.getCleanedContent();
prep.cleanUp();
profiler.stopMeasuring(docFileArr[i].length());
} catch (Throwable thr) {
profiler.abortMeasuring();
throw thr;
}
File outFile = new File(prepOutputDir, docFileArr[i].getName() + ".txt");
RegainToolkit.writeToFile(content, outFile);