class SpringUtils {

	public static Map<String, Object> toFlatMap(Object obj) {
		Map<String, Object> map = Maps.newHashMap();
		
		ConsumableValuePutter putter = new ConsumableValuePutter((k, v) -> {
			map.put(k, v);
		});
		/*BEAN_TO_MAP_CONVERTOR.flatObject("", obj, (k, v, ctx)->{
			Object value = v;
			TypeDescriptor sourceType = null;
			if(v.getClass()!=String.class){
            	Field field = ctx.getField();
            	if(field!=null && (field.getAnnotation(DateTimeFormat.class)!=null || field.getAnnotation(NumberFormat.class)!=null) ){
    	            sourceType = new TypeDescriptor(field);
            	}
            	if(sourceType==null){
    	            sourceType = new TypeDescriptor(new Property(ctx.getSource().getClass(), ctx.getProperty().getReadMethod(), ctx.getProperty().getWriteMethod()));
            	}
            	value = getFormattingConversionService().convert(v, sourceType, TypeDescriptor.valueOf(String.class));
            }
        	map.put(k, value);
		});*/
		BEAN_TO_MAP_CONVERTOR.flatObject("", obj, putter);
		return map;
	}

	private  SpringUtils();

}