//String --> anything
Class fieldType = getNestedPropertyType(result, field.name());
//System.out.println(field.name()+", class = " + fieldType.getName());
Object fieldValue = null;
if(fieldType.equals(Date.class))
fieldValue = new Date(Long.parseLong(field.stringValue()));
else
fieldValue = ConvertUtils.convert(field.stringValue(), fieldType);
//System.out.println(fieldValue+", class = " + fieldValue.getClass().getName());
setNestedProperty(result, field.name(), fieldValue);
}