res.setURL(new URL(httpMethod.getURI().toString()));
}
saveConnectionCookies(httpMethod, res.getURL(), getCookieManager());
res = resultProcessing(areFollowingRedirect, frameDepth, res);
log.debug("End : sample");
<BUG>if (httpMethod != null) {</BUG>
httpMethod.releaseConnection();
<BUG>}</BUG>
return res;
} catch (IllegalArgumentException e)// e.g. some kinds of invalid URL

res.setURL(new URL(httpMethod.getURI().toString()));
}
saveConnectionCookies(httpMethod, res.getURL(), getCookieManager());
res = resultProcessing(areFollowingRedirect, frameDepth, res);
log.debug("End : sample");
httpMethod.releaseConnection();
return res;
} catch (IllegalArgumentException e)// e.g. some kinds of invalid URL
