* Setting Anchor text of last added anchor
* @param anchorText Text to be added
*/
private void addAnchorText(String anchorText) {
if (!links.isEmpty()) {
LinkTask l = (LinkTask) links.get(links.size() - 1);
l.setAnchorText(anchorText.replaceAll("\\s+", " ").trim());
LOG.debug("Adding anchor: " + l.getAnchorText() + " on link: " + l);
}
}