dap4/d4lib/src/main/java/dap4/dap4lib/netcdf/Nc4Notes.java
static Notes
    factory(NoteSort ns, int g, int id, Nc4DSP dsp)
    {
        Notes note = null;
        switch (ns) {
        case TYPE:
            note = new TypeNotes(g, id, dsp);
            break;
        case VAR:
            note = new VarNotes(g, id, dsp);
            break;
        case DIM:
            note = new DimNotes(g, id, dsp);
            break;
        case GROUP:
            note = new GroupNotes(g, id, dsp);
            break;
        }
        return note;
    }
static Notes
    factory(NoteSort ns, int g, int id, Nc4DSP dsp)
    {
        Notes note = null;
        switch (ns) {
        case TYPE:
            note = new TypeNotes(g, id, dsp);
            break;
        case VAR:
            note = new VarNotes(g, id, dsp);
            break;
        case DIM:
            note = new DimNotes(g, id, dsp);
            break;
        case GROUP:
            note = new GroupNotes(g, id, dsp);
            break;
        }
        return note;
    }
Use a factory so we can debug constructor calls