public String getElement(String key) {

        for (Element element : elements) {
            if (element.getKey() != null && element.getKey().equalsIgnoreCase(key)) {
                return element.getValue();
            }
        }
        return null;
    }
Annotation for siddhi functions and extensions
modules/siddhi-query-api/src/main/java/io/siddhi/query/api/annotation/Annotation.java