private String parseAndPrint(String name, String value) throws BindException { Map<String, String> paramMap = new HashMap<>(); paramMap.put(name, value); Form form = new Form(); DataBinder binder = new DataBinder(form, "target"); binder.setConversionService(conversionService); binder.bind(new MutablePropertyValues(paramMap)); BindingResult binding = BindingResultUtils.getBindingResult(binder.close(), "target"); return (String) binding.getFieldValue(name); }