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