@Override
    public void write(String data, String charsetName) {
        if (connection == null) {
            connect();
        }

        try { connection.getOutputStream().write(data.getBytes(charsetName)); } catch (IOException e) { throw new RuntimeException(e); }
    }
@see io.apiman.gateway.engine.components.http.IHttpClientRequest#write(java.lang.String, java.lang.String)
gateway/platforms/servlet/src/main/java/io/apiman/gateway/platforms/servlet/components/HttpClientRequestImpl.java