@Override
    public String toString(String encoding) {
        try {
            return new String(buffer, 0, bytesInBuffer, encoding);
        } catch (UnsupportedEncodingException e) {
            throw new RuntimeException(e);
        }
    }
@see io.apiman.gateway.engine.io.IApimanBuffer#toString(java.lang.String)
gateway/engine/core/src/main/java/io/apiman/gateway/engine/io/ByteBuffer.java