@Override
    public void end() { 
        if (endHandler != null) {
            endHandler.handle((Void) null);
        }
        finished = true;
    }
@see io.apiman.gateway.engine.io.IWriteStream#end()
gateway/engine/core/src/main/java/io/apiman/gateway/engine/io/AbstractStream.java