public static LinkedHashMap<String,Object> arrayListToLinkedHashMap(ArrayList<?> arr) {
		if (arr == null) return new LinkedHashMap<String,Object>();
		//is this the same as arr2hm?
		int i=0;

		LinkedHashMap<String,Object> hm = new LinkedHashMap<String,Object>();
		for (Object value: arr) {
			hm.put(String.valueOf(i),value);
			i++;
		}
		return hm;
	}