}
continue;
}
}
if (function instanceof LinkFunction) {
LinkFunction linkFunction = (LinkFunction) function;
linkFunction.setURIResolver(textRecord.document);
}
if (function instanceof LinkEnd && !linkStarted) {
continue;
}
if (function instanceof LinkStart) {
LinkFunction linkFunction = (LinkFunction) function;
boolean brokenLink = !textRecord.document.contains(URIUtil.removeAnchor(linkFunction.getURI()));
if (brokenLink && textRecord.document.isRemoveUnresolvedLinks()) {
linkStarted = false;
continue;
} else {
linkStarted = true;