analysis,
tag.getCompleteBeginIndex(), tag.getCompleteEndIndex());
// Add an action for naming the reference tag
// TODO: manage a better action for naming the reference tag and replacing all other tags
TextProvider provider = null;
if (links.size() > 0) {
provider = new TextProviderUrlTitle(links.get(0).getLink());
}
String prefix = contents.substring(tag.getBeginIndex(), tag.getEndIndex() - 1);
String suffix = contents.substring(tag.getEndIndex() - 1, tag.getCompleteEndIndex());