ge.setRuleId("xml:" + mistake.getRuleIdentifier());
ge.setCategory(Categories.getCat("xml:" + mistake.getRuleIdentifier()));
ge.setError(text.substring(mistake.getStart(), mistake.getEnd()));
if (mistake.getSuggestions() != null
&& mistake.getSuggestions().length > 0)
<BUG>ge.setReplace(mistake.getSuggestions()[0]);
</BUG>
ge.addToIndexes();
}
} catch (Throwable e) {

ge.setRuleId("xml:" + mistake.getRuleIdentifier());
ge.setCategory(Categories.getCat("xml:" + mistake.getRuleIdentifier()));
ge.setError(text.substring(mistake.getStart(), mistake.getEnd()));
if (mistake.getSuggestions() != null
&& mistake.getSuggestions().length > 0)
ge.setReplace(Arrays.toString(mistake.getSuggestions()));
ge.addToIndexes();
}
} catch (Throwable e) {
