public Pair fetchFieldValue(InputField field, BeanWrapper command) { Object value = command.getPropertyValue(field.getPropertyName()); String strValue = (value == null) ? null : String.valueOf(value); return new Pair(field.getDisplayName(), strValue); }