class ConfigPropertyConverter implements Converter<JndiBindingsType.JndiBinding.ConfigProperty> {

  @Override
  public JndiBindingsType.JndiBinding.ConfigProperty convertFromText(String value,
      Class<?> targetType, String optionContext) {
    try {
      return mapper.readValue(value, JndiBindingsType.JndiBinding.ConfigProperty.class);
    } catch (IOException e) {
      throw new IllegalArgumentException("invalid json: " + value);
    }
  }

}