dest.add(element);
    public static List flattenStringList(final List src, String name)            throws SmartFrogInitException {        if (src == null) {            return new ArrayList(0);        }        List dest = new ArrayList(src.size());        Iterator index = src.iterator();        while (index.hasNext()) {            Object element = index.next();            if (element instanceof List) {                List l2 = flattenStringList((List) element, name);                for (Iterator i2 = l2.iterator(); i2.hasNext();) {                    dest.add(i2.next());                }            } else if (!(element instanceof String)) {                throw new SmartFrogInitException(                        "An element in "                        +                        name +                        " is not string or a list: " +                        element.toString());            }            dest.add(element);        }        return dest;    }