String extraInformation = "Referer: " + httpRequest.getHeader("Referer") + "\n";
extraInformation += "UserAgent: " + httpRequest.getHeader("User-Agent") + "\n";
extraInformation += "User IP: " + httpRequest.getRemoteAddr();
logger.info("Could not map URI " + requestURI + " against any page on this website." + "\n" + extraInformation);
throw new PageNotFoundException("Could not map URI " + requestURI + " against any page on this website.");
}
else
logger.info("Mapped URI " + requestURI + " --> " + siteNodeId + " in " + (end - start) + "ms");
Integer contentId = getContentId(httpRequest);