private static Map<String, String> createDeploymentProperties(Annotation annotation,
                                                                  io.siddhi.annotation.Extension extension) {
        Map<String, String> deploymentOptions = new HashMap<>();
        for (Element element : annotation.getElements()) {
            if (element.getKey().startsWith("dep:")) {
                if (Pattern.matches("(.*?)\\{\\{.*?\\}\\}(.*?)", element.getValue())) {
                    throw new SiddhiAppCreationException("DeploymentOption cannot have dynamic parameters, but '"
                            + element.getKey() + "' of '" + extension.namespace() + ":" + extension.name() +
                            "' is configured with '" + element.getValue() + "'",
                            annotation.getQueryContextStartIndex(), annotation.getQueryContextEndIndex());
                } else {
                    deploymentOptions.put(element.getKey().substring(4), element.getValue());
                }
            }
        }
        return deploymentOptions;
    }
Utility class for queryParser to help with QueryRuntime
generation.
modules/siddhi-core/src/main/java/io/siddhi/core/util/parser/helper/DefinitionParserHelper.java