transformer.transform(source, result);
return result.getWriter().toString();
}
private String annotate(String content) {
RegexBusyParser busyParser = new RegexBusyParser(config, content);
if (busyParser.isBusy()) {
return busyParser.annotate();
}
RegexStatusParser statusParser = new RegexStatusParser(config, content);
return statusParser.annotate();
}