if (m_httpClient != null) {
m_httpClient.close();
}
}
public CloseableHttpResponse execute(final HttpUriRequest method) throws ClientProtocolException, IOException {
<BUG>LOG.debug("execute: " + this.toString());
final HttpRequestWrapper requestWrapper = HttpRequestWrapper.wrap(method);</BUG>
if (m_userAgent != null && !m_userAgent.trim().isEmpty()) {
requestWrapper.setHeader(HTTP.USER_AGENT, m_userAgent);
}

if (m_httpClient != null) {
m_httpClient.close();
}
}
public CloseableHttpResponse execute(final HttpUriRequest method) throws ClientProtocolException, IOException {
LOG.debug("execute: " + this.toString() + "; method: " + method.toString());
final HttpRequestWrapper requestWrapper = HttpRequestWrapper.wrap(method);
if (m_userAgent != null && !m_userAgent.trim().isEmpty()) {
requestWrapper.setHeader(HTTP.USER_AGENT, m_userAgent);
}
