/** * Gets the child list with the given name. * * @param listname the name of the list to retrieve. * @return the named list. */ public GenericList getList(String listname) { for (GenericList list : lists) if (list.getName().equalsIgnoreCase(listname)) return list; GenericObject l = getChild(listname); if (l == null) return null; if (l.allWritable .isEmpty()) // which means it could have been an empty list parsed as an object with no // children return convertToList(l); return null; }