final Segments.Process process = Segments.Process.LOCALCRAWLING;
if (searchEvent != null) {
searchEvent.addHeuristic(url.hash(), heuristicName, true);
}
if (this.indexSegments.segment(process).exists(url.hash())) return; // don't do double-work
final Request request = this.loader.request(url, true, true);
final CrawlProfile profile = sb.crawler.getActive(ASCII.getBytes(request.profileHandle()));
final String acceptedError = this.crawlStacker.checkAcceptance(url, profile, 0);
if (acceptedError != null) {
this.log.logWarning("addToIndex: cannot load " + url.toNormalform(false, false) + ": " + acceptedError);
return;
}