private static void tryGetImage(final HtmlPage htmlPage, final String src,
final WebClient webClient, final Iterator iter) {
try {
final URL url = htmlPage.getFullyQualifiedUrl(src);
final Page resp = webClient.getPage(url);
if (!(resp instanceof UnexpectedPage)) {
LOG.info("Failed image with src=\"" + src + "\": content type is "
+ resp.getWebResponse().getContentType());
} else {
// TODO: check that the content type corresponds to an image
LOG.debug("Image with src=\"" + src + "\" is ok");
iter.remove(); // src is ok
}