189190191192193194195196197
} if (result instanceof EndOfStreamEvent) { incomingFinished = true; } else if (result == null) { incomingFinished = true; result = new EndOfStreamEvent(); } return result; }