if (subnodes.contains (sid)) {
if (subnodes.contains (sid)) try {
    public Node getGroupbySubnode (String sid, Relation rel) {	loadNodes ();	if (subnodes.contains (sid)) {	    Node node = new Node (this, sid, nmgr, null);	    DbMapping dbm = new DbMapping ();	    dbm.setSubnodeMapping (rel.other);	    dbm.setSubnodeRelation (rel.getGroupbySubnodeRelation());	    dbm.setPropertyMapping (rel.other);	    dbm.setPropertyRelation (rel.getGroupbyPropertyRelation());	    node.setDbMapping (dbm);	    String snrel = "WHERE "+rel.groupby +"='"+sid+"'";	    if (dbm.getSubnodeRelation().direction == Relation.BACKWARD)	        snrel += " AND "+dbm.getSubnodeRelation().remoteField+"='"+getNonVirtualHomeID()+"'";	    node.setSubnodeRelation (snrel);	    return node;	}	return null;    }