class KsqlConfigResolver implements ConfigResolver {

  @Override
  public  Optional<ConfigItem> resolve(final String propertyName, final boolean strict) {
    if (propertyName.startsWith(KSQL_REQUEST_CONFIG_PROPERTY_PREFIX)) {
      return resolveRequestConfig(propertyName);
    } else if (propertyName.startsWith(KSQL_CONFIG_PROPERTY_PREFIX)
        && !propertyName.startsWith(KSQL_STREAMS_PREFIX)) {
      return resolveKsqlConfig(propertyName);
    }

    return resolveStreamsConfig(propertyName, strict);
  }

}