map.put(DateFormat.class, new DateFormatPropertyEditor());
map.put(ColumnWidths.class, new ColumnWidthsPropertyEditor());
CustomEditorConfigurer configurer = new CustomEditorConfigurer();
configurer.setCustomEditors(map);
configurer.postProcessBeanFactory(beanFactory);
return beanFactory;
}
public static BeanFactory loadBeanFactory(String string) {
return loadBeanFactory(new ClassPathResource(string));