public Collection getAllChildren(org.cougaar.core.qos.frame.Frame parent, String relationship) {
public synchronized Collection getAllChildren(org.cougaar.core.qos.frame.Frame parent, String relationship) {
    public Collection getAllChildren(org.cougaar.core.qos.frame.Frame parent, String relationship) {        if (log.isDebugEnabled())            log.debug("getAllChildren(parent="+parent+" relationship="+relationship+")");        Collection childrenRelationships = findFrames(new ContainsPredicate(relationship, (String)parent.getValue("name")));        //System.out.println("getAllChildren of "+parent+"   relation="+relationship);        //Set childrenRelationships = frameSet.findRelations(parent, "child", relationship);        org.cougaar.core.qos.frame.Frame f;         org.cougaar.core.qos.frame.RelationFrame rf;        org.cougaar.core.qos.frame.Frame ch;        String name;        ArrayList result = new ArrayList();        for (Iterator ii=childrenRelationships.iterator(); ii.hasNext(); ) {            f = (org.cougaar.core.qos.frame.RelationFrame) ii.next();            //if (f instanceof RelationFrame) {                ch = ((RelationFrame)f).relationshipChild();                //System.out.println((String) f.getValue("child-value"));                //name = (String) f.getValue("child-value");                //ch = (org.cougaar.core.qos.frame.Frame) frameMap.get(name);                if (ch == null)                    continue;                result.add(ch);            //}   else System.out.println(f.getClass().getName());        }        if (log.isDebugEnabled())            printResult(result);        return result;    }