protected void handleEnd() {
        if (endHandler != null) {
            endHandler.handle((Void) null);
        }

        finished = true;
    }
Signals the end of the stream.
gateway/engine/core/src/main/java/io/apiman/gateway/engine/io/AbstractStream.java