} else if ("head".equals(request.method.toLowerCase())) {
fetchRequest = FetchRequest.createHeadRequest(request.url.toURI());
} else {
fetchRequest = FetchRequest.createGetRequest(request.url.toURI());
}
FetchResponse response = httpFetcher.fetch(fetchRequest);
return new Step2HttpResponseMessage(response, request);
} catch (URISyntaxException e) {
throw new IOException("couldn't convert " + request.url.toString() +
" into a URI: " + e.getMessage());
} catch (FetchException e) {