JExpression[] arguments = {makeWorkArgument(next, toplevel)} ;  JMethodCallExpression workExpr = new JMethodCallExpression( null,  null,  workName,  arguments);  JExpressionStatement workStatement = new JExpressionStatement(null, workExpr, null);
JStatement workStatement = makeWorkStatement(next, workName, toplevel);
    private JStatement[] makeWorkStatements(List list, 					    SIRStream toplevel) {	// build the statements for <work> ...	List statementList = new LinkedList();	// for each filter...	for (ListIterator it = list.listIterator(); it.hasNext(); ) {	    Object next = it.next();	    // get name of work function associated with <next>	    String workName = getWorkName(next, toplevel);	    // build the parameter to the work function, depending on	    // whether we're calling a filter work function or a	    // hierarchical list-work function	    JExpression[] arguments		= {makeWorkArgument(next, toplevel)} ;	    // get method call to work function of <filter>	    JMethodCallExpression workExpr = 		new JMethodCallExpression(/* tokref */					  null,					  /* prefix -- ok to be null? */					  null,					  /* ident */					  workName,					  /* args */					  arguments);	    // make a statement from the call expression	    JExpressionStatement workStatement =		new JExpressionStatement(null, workExpr, null);	    // add call to filter work to our statement list	    statementList.add(workStatement);	}	// return list	return (JStatement[])statementList.toArray(new JStatement[0]);    }