int no = getChildrenNumber();
int no = 0;
    public Integer getHighestNameNumber(String base) throws Exception {        Integer i = new Integer(-1);        Item[] c = getChildren();        if (c != null) {            int index = 0;            int no = getChildrenNumber();            Item child = null;            String n = null;            int begin = 0;            String sub = null;            Integer number = null;            while (index < no) {                child = (Item) c[index];                if (child != null) {                    n = child.getName();                    if (n != null) {                        if (n.startsWith(base)) {                            begin = n.indexOf(new String("_"));                            sub = n.subString(begin + 1);                            number = Integer.toInteger(sub);                            if (number != null) {                                if (number.isGreaterThan(i)) {                                    i = number;                                }                            } else {                                                throw new Exception("Could not get highest name number. The number is null.");                            }                        }                    } else {                                throw new Exception("Could not get highest name number. The name is null.");                    }                    } else {                    throw new Exception("Could not get highest name number. A child is null.");                }                index++;            }        } else {            throw new Exception("Could not get highest name number. The children array is null.");        }        return i;    }