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