public String validateAndGetStaticValue(String optionKey) {
        Option option = options.get(optionKey);
        if (option != null) {
            if (!option.isStatic()) {
                throw new SiddhiAppValidationException("'" + optionKey + "' is defined as a 'dynamic' option " +
                        "but it has to be a 'static' option for the " +
                        extension.namespace() + ":" +
                        extension.name() + " configuration.");
            }
            return option.getValue();
        } else {
            throw new SiddhiAppValidationException("'" + optionKey + "' 'static' option is not " +
                    "defined in the configuration of " +
                    extension.namespace() + ":" + extension.name() + ".");
        }
    }
Holder object to contain {@link Option}
modules/siddhi-core/src/main/java/io/siddhi/core/util/transport/OptionHolder.java