@Override
protected void innerProcess(CrawlURI curi) throws InterruptedException {
contentDigestHistory.load(curi);
if (!curi.getContentDigestHistory().isEmpty()) {
IdenticalPayloadDigestRevisit revisit =
new IdenticalPayloadDigestRevisit(curi.getContentDigestSchemeString());
revisit.setRefersToDate((String)curi.getContentDigestHistory().get(A_ORIGINAL_DATE));
revisit.setRefersToTargetURI((String)curi.getContentDigestHistory().get(A_ORIGINAL_URL));
String warcRecordId= (String)curi.getContentDigestHistory().get(A_WARC_RECORD_ID);
if (warcRecordId!=null) {
revisit.setRefersToRecordID(warcRecordId);
}
curi.setRevisitProfile(revisit);
curi.getAnnotations().add("duplicate:digest");
}
}