private String getHost(HttpMethod httpMethod, HttpConnection httpConnection) {
        try {
            final URI uri = httpMethod.getURI();
            // if uri have schema
            if (uri.isAbsoluteURI()) {
                return HttpClient3RequestWrapper.getEndpoint(uri.getHost(), uri.getPort());
            }
            if (httpConnection != null) {
                final String host = httpConnection.getHost();
                final int port = HttpClient3RequestWrapper.getPort(httpConnection);
                return HttpClient3RequestWrapper.getEndpoint(host, port);
            }
        } catch (Exception e) {
            if (isDebug) {
                logger.debug("Failed to get host. httpMethod={}", httpMethod, e);
            }
        }
        return null;
    }
@author Minwoo Jung
@author jaehong.kim
agent-module/plugins/httpclient3/src/main/java/com/navercorp/pinpoint/plugin/httpclient3/interceptor/HttpMethodBaseExecuteMethodInterceptor.java