public void insertAfterCurrent(E streamEvents) {

        if (lastReturned == null) {
            throw new IllegalStateException();
        }

        E currentEvent = getLastEvent(streamEvents);

        ComplexEvent nextEvent = lastReturned.getNext();
        lastReturned.setNext(streamEvents);
        currentEvent.setNext(nextEvent);

    }
Collection used to group and manage chunk or ComplexEvents

@param <E> sub types of ComplexEvent such as StreamEvent and StateEvent
modules/siddhi-core/src/main/java/io/siddhi/core/event/ComplexEventChunk.java