private static List<Map<String, String>> createDestinationDeploymentProperties(Annotation distributionAnnotation,
                                                                                   Sink sink) {

        io.siddhi.annotation.Extension sinkExt
                = sink.getClass().getAnnotation(io.siddhi.annotation.Extension.class);

        List<Map<String, String>> destinationDeploymentProperties = new ArrayList<>();
        distributionAnnotation.getAnnotations().stream()
                .filter(annotation -> annotation.getName().equalsIgnoreCase(SiddhiConstants.ANNOTATION_DESTINATION))
                .forEach(destinationAnnotation -> destinationDeploymentProperties.add(
                        createDeploymentProperties(destinationAnnotation, sinkExt)));
        return destinationDeploymentProperties;
    }
Utility class for queryParser to help with QueryRuntime
generation.
modules/siddhi-core/src/main/java/io/siddhi/core/util/parser/helper/DefinitionParserHelper.java