ResolveResult resolved = resolveExtends(entry); PropertyList resolvedList = resolved.getResolvedPropertyList();
ResolveResult result = resolveExtends(entry); PropertyList resolvedList = result.getResolvedPropertyList();
    private List<Node> copyAndResolve(PropertyList target,            HashMap<QName, QName> map)            throws CdlException {        int childCount = target.getChildCount();        List<Node> newChildren = new ArrayList<Node>(childCount);        for (Node node : target.nodes()) {            if (node instanceof PropertyList) {                //find the matching property list element                PropertyList entry = (PropertyList) node;                QName name = entry.getQName();                //merge it                ResolveResult resolved = resolveExtends(entry);                PropertyList resolvedList = resolved.getResolvedPropertyList();                assert name.equals(resolvedList.getQName());                //now, at this point we have a resolved property list.                //we add this to our children                if (map == null) {                    //when not mapping, we add everything                    newChildren.add(resolvedList);                } else {                    //when mapping, we do a lookup                    if (map.get(name) == null) {                        //and only add unique things                        map.put(name, name);                        newChildren.add(resolvedList);                    }                }            } else {                //anything other than a PropertyList. Just merge it in                newChildren.add(node);            }        }        return newChildren;    }