@Override
    public void end() {
        atEnd = true;
        processBuffer();
        super.end();
    }
@see io.apiman.gateway.engine.io.AbstractStream#end()
gateway/engine/policies/src/main/java/io/apiman/gateway/engine/policies/rewrite/URLRewritingStream.java