Here you can find the source of toCFML(Object obj)
public static Object toCFML(Object obj)
//package com.java2s; //License from project: LGPL import java.util.Iterator; import java.util.List; import java.util.ListIterator; import java.util.Map; import java.util.Map.Entry; public class Main { public static Object toCFML(Object obj) { if (obj instanceof Map) return toCFML((Map) obj); if (obj instanceof List) return toCFML((List) obj); return obj; }/* ww w .ja va2 s.c om*/ public static Map toCFML(Map map) { Iterator it = map.entrySet().iterator(); Map.Entry entry; while (it.hasNext()) { entry = (Entry) it.next(); entry.setValue(toCFML(entry.getValue())); } return map; } public static Object toCFML(List list) { ListIterator it = list.listIterator(); int index; while (it.hasNext()) { index = it.nextIndex(); list.set(index, toCFML(it.next())); } return list; } }