public SessionWindowProcessor.SessionComplexEventChunk<StreamEvent> getCurrentSession() {
        return currentSession;
    }
This keeps the information of a session key. i.e. current session and the previous session
modules/siddhi-core/src/main/java/io/siddhi/core/util/SessionContainer.java