public static int findEventChunkSize(StreamEvent streamEvent) {
        int chunkSize = 1;
        if (streamEvent == null) {
            return 0;
        }
        StreamEvent streamEventCopy = streamEvent;
        while (streamEventCopy.hasNext()) {
            chunkSize = chunkSize + 1;
            streamEventCopy = streamEventCopy.getNext();
        }
        return chunkSize;
    }
class containing utils related to store table cache
modules/siddhi-core/src/main/java/io/siddhi/core/util/cache/CacheUtils.java