System.out.println(spec.getName());
    public Object visitStreamSpec(StreamSpec spec)    {        System.out.println(spec.getName());        if (spec.getType() != StreamSpec.STREAM_FILTER)            return spec;        System.out.println("  is a filter");        // Find the work function.  There should be exactly one;        // count on StreamSpec to DTRT.        FuncWork fw = spec.getWorkFunc();                if (fw.getPeekRate() == null &&            fw.getPopRate() == null &&            fw.getPushRate() == null)        {            // Check...we have a phased filter now.            StreamSpec newSpec =                new StreamSpec(spec.getContext(),                               StreamSpec.STREAM_PHASEDFILTER,                               spec.getStreamType(),                               spec.getName(),                               spec.getParams(),                               spec.getVars(),                               spec.getFuncs());            return newSpec;        }        return spec;    }