printSchedule(schedObject, "make work statement working on: ");
    private JStatement makeWorkStatement(Object schedObject, 					 SIRStream toplevel) {	printSchedule(schedObject, "make work statement working on: ");	// see if we have a repeated scheduled object	if (schedObject instanceof SchedRepSchedule) {	    // get the repeated schedule	    SchedRepSchedule repSched = (SchedRepSchedule)schedObject;	    // get body of the for loop	    JStatement body = makeWorkStatement(repSched.						getOriginalSchedule(),						toplevel);	    // get the count for the for loop	    int count = repSched.getTotalExecutions().intValue();	    // return a for loop	    return makeForLoop(body, count);	} else {	    // otherwise, get name of work function associated with	    // <schedObject>	    String workName = getWorkName(schedObject, toplevel);	    // make the work statement	    return makeWorkCall(schedObject, workName, toplevel);	}    }