private void validateAllowedLatency(long allowedLatency, long sessionGap) {
        if (allowedLatency > sessionGap) {
            throw new SiddhiAppValidationException("Session window's allowedLatency parameter value "
                    + "should not be greater than the session gap parameter value");

        }
    }
Implementation of {@link WindowProcessor} which represent a Window operating based on a session.
modules/siddhi-core/src/main/java/io/siddhi/core/query/processor/stream/window/SessionWindowProcessor.java