public Map<String, WindowDefinition> getWindowDefinitionMap() {
        return windowDefinitionMap.entrySet()
                .stream()
                .collect(Collectors.toMap(Map.Entry::getKey,
                        e -> (WindowDefinition) e.getValue()));
    }
Get the window definition map.

@return Map of {@link WindowDefinition}s.
modules/siddhi-core/src/main/java/io/siddhi/core/SiddhiAppRuntimeImpl.java