public List<String> flattenStringList(final List src, String name)
public List<String> flattenStringList(List src, String name)
    public List<String> flattenStringList(final List src, String name)            throws SmartFrogException {        if (src == null) {            return new ArrayList(0);        }        List<String> dest = new ArrayList<String>(src.size());        for(Object element:src) {            if (element instanceof List) {                List<String> l2 = flattenStringList((List) element, name);                for (String s:l2) {                    dest.add(s);                }            } else if (!(element instanceof String)) {                throw new SmartFrogInitException("An element in "                        +                        name +                        " is not string or a list: " +                        element.toString() + " class=" + element.getClass());            } else {                dest.add((String) element);            }        }        return dest;    }