for (int i = 0; i < uResults.getLength(); i++) { Element result = (Element) uResults.item(i); results.add(new ResultDescriptor(result));
for (int i = 0; i < uResults.size(); i++) { Element result = (Element) uResults.get(i); ResultDescriptor resultDescriptor = new ResultDescriptor(result); resultDescriptor.setParent(this); results.add(resultDescriptor);
    private void init(Element split) {        try {            setId(Integer.parseInt(split.getAttribute("id")));        } catch (Exception ex) {            throw new IllegalArgumentException("Invalid split id value " + split.getAttribute("id"));        }        NodeList uResults = split.getElementsByTagName("unconditional-result");        for (int i = 0; i < uResults.getLength(); i++) {            Element result = (Element) uResults.item(i);            results.add(new ResultDescriptor(result));        }    }