for (ListIterator it = str.getChildren().listIterator(); it.hasNext(); ) { SIROperator child = (SIROperator)it.next();
for (int i=0; i<str.size(); i++) { SIROperator child = (SIROperator)str.get(i);
    private void liftChildren(SIRContainer str) {	for (ListIterator it = str.getChildren().listIterator(); it.hasNext(); ) {	    SIROperator child = (SIROperator)it.next();	    if (child instanceof SIRPipeline) {		SIRPipeline pipe = (SIRPipeline)child;		if (pipe.size()==1 && pipe.get(0) instanceof SIRFilter && pipe.getParent()!=null) {		    eliminatePipe(pipe);		}	    }	}    }