} else if (getLoop()==newStr) {
} else if (getLoop()==oldStr) {
    public void replace(SIRStream oldStr, SIRStream newStr) {	newStr.setParent(this);	if (getBody()==oldStr) {	    setBody(newStr);	} else if (getLoop()==newStr) {	    setLoop(newStr);	} else {	    Utils.fail("Trying to replace child " + oldStr + " of " + this		       + " but this doesn't contain the child.");	}    }