* 将SolrDocument转换成Bean
* @param record
* @param clazz
* @return
*/
public static Object toBean(SolrDocument record, Class clazz){
Object obj = null;
try {
obj = clazz.newInstance();
} catch (InstantiationException e1) {
e1.printStackTrace();
} catch (IllegalAccessException e1) {
e1.printStackTrace();
}
Field[] fields = clazz.getDeclaredFields();
for(Field field:fields){
Object value = record.get(field.getName());
try {