myPatch.getDriver().calculateChecksum(myPatch); IPatchDriver d = myPatch.getDriver(); if (d instanceof ISingleDriver) { ((ISingleDriver)d).sendPatch(myPatch); ((ISingleDriver)d).playPatch(myPatch);
myPatch.calculateChecksum(); if (myPatch.getDriver() instanceof ISingleDriver) { myPatch.send(); myPatch.play();
    public void playSelectedPatch() {        IPatch myPatch = myModel.getPatchAt(table.getSelectedRow());        myPatch.getDriver().calculateChecksum(myPatch);        IPatchDriver d = myPatch.getDriver();        if (d instanceof ISingleDriver) {            ((ISingleDriver)d).sendPatch(myPatch);            ((ISingleDriver)d).playPatch(myPatch);        }    }