if (!checkSelected()) return; IPatch p = getSelectedPatch();
if (!checkSelected()) return;  ISinglePatch p = (ISinglePatch) getSelectedPatch();
    public void playSelectedPatch() {        if (!checkSelected())             return;        IPatch p = getSelectedPatch();        if (p == null) {	    ErrorMsg.reportError("Error", "That patch is blank.");	    return;	}        if (p.getDriver().isSingleDriver()) {            p.send();            p.play();        }    }