LOGGER.info("Cached URL(" + url.toString() + ") in " +
"ARC(" + name + ") at (" + offset + ")");
resource = arcCacheDir.getResource(name, offset);
// add the result to the index:
if(resource instanceof ArcResource) {
ArcResource aResource = (ArcResource) resource;
ARCRecord record = (ARCRecord) aResource.getArcRecord();
SearchResult result = adapter.adapt(record);
index.addSearchResult(result);
LOGGER.info("Added URL(" + url.toString() + ") in " +
"ARC(" + name + ") at (" + offset + ") to LiveIndex");