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