try {
ReTokenizeFile rtf=new ReTokenizeFile();
rtf.setOffset(excerptOffset);
String excerpt=rtf.getExcerpt(excerptFile,words);
if(excerpt != null){
excerpt=rtf.emphasizeAsXML(rtf.tidy(excerpt),words);
}
} catch (final FileNotFoundException e) {
addErrorMessage("File not found error: " +e.toString());
} catch (final IOException e) {
addErrorMessage("IO error occured: " +e.toString());