log.debug("++error: can't create node,  parent='"+f.getParentValue()+"'("+(parent!=null?"found":"not found")+") childName='"+f.getChildValue()+"'("+(child!=null?"found":"not found")+") relationship='"+relationship+"'");
log.debug("++error: can't create node,  parent='"+f.getParentValue()+"'("+(parentNode!=null?"found":"not found")+") childName='"+f.getChildValue()+"'("+(childNode!=null?"found":"not found")+") relationship='"+relationship+"'");
    protected void processRelationships(Collection relationshipFrames) {        org.cougaar.core.qos.frame.RelationFrame f;        org.cougaar.core.qos.frame.Frame pf, cf;        FrameNode parent, child;        String relationship, parentName, childName, parentProto, childProto;        for (Iterator ii=relationshipFrames.iterator(); ii.hasNext();) {            f = (org.cougaar.core.qos.frame.RelationFrame) ii.next();            //parentName = (String) f.getParentValue();            //childName  = (String) f.getChildValue();            //parentProto = (String) f.getParentPrototype();            //childProto  = (String) f.getChildPrototype();            pf = f.relationshipParent();            cf = f.relationshipChild();            relationship = (String) f.getKind();            if (pf == null || cf  == null) { // we got ourselves an invalid relation frame (if parent || child has not arrived yet)                if (log.isDebugEnabled())                        log.debug("processRelationships:  invalid relation frame, ignoring"+f.getParentValue()+"=>"+relationship+"==>"+f.getChildValue());                return;            }            parent = createNode(pf);//(FrameNode) frameMap.get(pf);            child  = createNode(cf);//(FrameNode) frameMap.get(cf);            if (parent != null && child != null) {                if (child.getParent() != null) {                    FrameNode tmp = child;                    child = new FrameNodeProxy(child);                    tmp.addProxy((FrameNodeProxy)child);                    if (log.isDebugEnabled())                        log.debug("creating *FrameNodeProxy for frame '"+f.getChildValue()+"'  relation="+relationship);                }                FrameNode relationNode = parent.getRelationshipNode(relationship);                if (relationNode == null) {                    if (log.isDebugEnabled())                        log.debug("creating RelationFrameNode:  "+f.getParentValue()+"=>"+relationship+"==>"+f.getChildValue());                    relationNode = new FrameNode(relationship);                    parent.addRelationshipNode(treeModel, relationNode);                }                //relationNode.add(child);                treeModel.insertNodeInto(child, relationNode, 0);            } else {                if (log.isDebugEnabled())                    log.debug("++error: can't create node,  parent='"+f.getParentValue()+"'("+(parent!=null?"found":"not found")+") childName='"+f.getChildValue()+"'("+(child!=null?"found":"not found")+") relationship='"+relationship+"'");                ;// print something here            }        }        Collection rootNodes = findRootLevelNodes();        for (Iterator ii=rootNodes.iterator(); ii.hasNext();)            treeModel.insertNodeInto((DefaultMutableTreeNode) ii.next(), root, 0);    }