byte[] sysex = patch.getByteArray(); IPatchDriver driver = (IPatchDriver) DriverUtil.chooseDriver(sysex); patch.setDriver(driver); if (driver == null) {
patch.setDriver(); if (patch.getDriver().isNullDriver()) {
    private void chooseDriver(IPatch patch) {        byte[] sysex = patch.getByteArray();        IPatchDriver driver = (IPatchDriver) DriverUtil.chooseDriver(sysex);        patch.setDriver(driver);        if (driver == null) {            // Unkown patch, try to guess at least the manufacturer            patch.setComment("Probably a "                    + LookupManufacturer.get(sysex[1], sysex[2], sysex[3])                    + " Patch, Size: " + sysex.length);        }    }