printSchedule(list, "entering makeWorkStatements");
    private JStatement[] makeWorkStatements(List list, 					    SIRStream toplevel) {	printSchedule(list, "entering makeWorkStatements");	// build the statements for <work> ...	List statementList = new LinkedList();	// for each filter...	for (ListIterator it = list.listIterator(); it.hasNext(); ) {	    Object next = it.next();	    // make a statement that does some work (could be for loop	    // or function call)	    JStatement workStatement = makeWorkStatement(next, toplevel);	    // add work statement to list	    statementList.add(workStatement);	}	// return list	return (JStatement[])statementList.toArray(new JStatement[0]);    }