for(int i = 0; i < elements.size(); i++) p.add((SIRStream)this.elements.get(i));
for(int i = 0; i < elements.size(); i++) {  SIRStream child = (SIRStream)this.elements.get(i);  SIRStream childClone = (SIRStream)child;    p.add(childClone); } System.err.println("cloning " + this + " into " + p); new RuntimeException().printStackTrace();
    public Object clone() {	SIRPipeline p = new SIRPipeline(this.parent, this.fields,					this.methods);	p.setInit(this.init);	for(int i = 0; i < elements.size(); i++) 	    p.add((SIRStream)this.elements.get(i));	return p;    }