printSchedule(schedObject, "in get work name");
    private String getWorkName(Object schedObject, SIRStream toplevel) {	// if <next> is splitter or joiner, then work is constant	if (schedObject instanceof SIRSplitter) {	    // if splitter, take splitter name	    return LoweringConstants.SPLITTER_WORK_NAME;	} else if (schedObject instanceof SIRJoiner) {	    // if joiner, take joiner name	    return LoweringConstants.JOINER_WORK_NAME;	} else if (schedObject instanceof SIRFileReader) {	    // if file reader, take file reader name	    return LoweringConstants.FILE_READER_WORK_NAME;	} else if (schedObject instanceof SIRFileWriter) {	    // if file reader, take file reader name	    return LoweringConstants.FILE_WRITER_WORK_NAME;	} else {	    // otherwise, have a list or filter--need to make a work function	    JMethodDeclaration work = makeWork(schedObject, toplevel);	    // return name of work function	    printSchedule(schedObject, "in get work name");	    return work.getName();	}    }