((LibraryFrame)JSLDesktop.getSelectedFrame()).PastePatch(patarray[k]);
((LibraryFrame)JSLDesktop.getSelectedFrame()).pastePatch(patarray[k]);
    static boolean doImport(java.io.File file) throws java.io.IOException {        Sequence seq;        Track[] tr;        try {            seq=MidiSystem.getSequence(file);        }catch (Exception ex) {            // If we fall in an exception the file was not a Midifile....            return false;        }        tr=seq.getTracks();        //ErrorMsg.reportStatus("Track Count "+tr.length);        for (int j=0;j<tr.length;j++) {            //ErrorMsg.reportStatus("Track "+j+":size "+tr[j].size());            for (int i=0;i<tr[j].size();i++) {                if (tr[j].get(i).getMessage() instanceof SysexMessage) {                    //ErrorMsg.reportStatus("Track "+j+" Event "+i+" SYSEX!!");                    Patch q=new Patch(tr[j].get(i).getMessage().getMessage());                    Patch[] patarray=q.dissect();                    for (int k=0;k<patarray.length;k++) {			((LibraryFrame)JSLDesktop.getSelectedFrame()).PastePatch(patarray[k]);                }            }        }        }        return true;    }