ErrorMsg.reportError("Error", "Error in WaldorfMW2 Bank Driver", e);
ErrorMsg.reportError("Error", "Error in WaldorfMW2 bank driver", e);
    protected Patch getPatch(Patch bank, int bankNum, int patchNum) {        try {            byte [] sysex = new byte[this.singleSize];                        System.arraycopy(   bank.sysex,                    getPatchStart(patchNum),                    sysex,                    MW2Constants.SYSEX_HEADER_OFFSET,                    MW2Constants.PURE_PATCH_SIZE);            Patch p = new Patch(sysex);            WaldorfMW2SingleDriver.createPatchHeader(bank, bankNum, patchNum);                          WaldorfMW2SingleDriver.createPatchFooter(bank);            WaldorfMW2SingleDriver.calculateChecksum(   p,                     MW2Constants.SYSEX_HEADER_OFFSET,                     MW2Constants.SYSEX_HEADER_OFFSET + MW2Constants.PURE_PATCH_SIZE,                     MW2Constants.SYSEX_HEADER_OFFSET + MW2Constants.PURE_PATCH_SIZE - 1);                        return p;        } catch (Exception e) {            ErrorMsg.reportError("Error", "Error in WaldorfMW2 Bank Driver", e);            return null;        }    }