class LocalPropertyParser implements PropertyParser {

  @Override
  public Object parse(final String property, final Object value) {
    if (property.equalsIgnoreCase(KsqlConstants.LEGACY_RUN_SCRIPT_STATEMENTS_CONTENT)) {
      validator.validate(property, value);
      return value;
    }

    final ConfigItem configItem = resolver.resolve(property, true)
        .orElseThrow(() -> new IllegalArgumentException(String.format(
            "Not recognizable as ksql, streams, consumer, or producer property: '%s'", property)));

    final Object parsedValue = configItem.parseValue(value);

    validator.validate(configItem.getPropertyName(), parsedValue);
    return parsedValue;
  }

  public  LocalPropertyParser();
    LocalPropertyParser(final ConfigResolver resolver, final PropertyValidator validator);

}