public IndexReader newReader(Directory indexDir, boolean readOnly)
throws IOException {
IndexReader reader=IndexReader.open(indexDir,null,readOnly,termInfosIndexDivisor);
BoboIndexReader boboReader=null;
try{
WorkArea workArea = new WorkArea();
workArea.put(getClass().getClassLoader());
boboReader=BoboIndexReader.getInstance(reader,workArea);
return boboReader;
}
catch(IOException e){
if (reader!=null){