@Override
    public void end() {
        if (connection == null) {
            connect();
        }
        if (outputStream != null) {
            IOUtils.closeQuietly(outputStream);
            outputStream = null;
        }
        IHttpClientResponse clientResponse = new HttpClientResponseImpl(connection);
        handler.handle(AsyncResultImpl.create(clientResponse));
    }
@see io.apiman.gateway.engine.components.http.IHttpClientRequest#end()
gateway/platforms/servlet/src/main/java/io/apiman/gateway/platforms/servlet/components/HttpClientRequestImpl.java