if(addToRequestLog) {
workspace.getRequestLog().addRequestResponse(response);
}
final VegaURI uri = VegaURI.fromHostAndRequest(response.getHost(), response.getOriginalRequest());
final IWebPath path = workspace.getWebModel().getWebPathByUri(uri);
path.setVisited(true);
result.setDeclaredMimeType(mimeDetector.getDeclaredMimeType(response));
result.setSniffedMimeType(mimeDetector.getSniffedMimeType(response));
final String mimeType = getBestMimeType(result);
if(mimeType != null && path.getMimeType() == null) {
path.setMimeType(mimeType);
}
if(scrapePage)
runExtractUrls(result, response, workspace.getWebModel());
runResponseProcessingModules(response.getOriginalRequest(), response, result.getDeclaredMimeType(), result.getSniffedMimeType(), workspace);