return driver.createPatch(buffer)[0];
return driver.createPatch(buffer);
    public static IPatch createNewPatch(IPatchDriver driver, String fileName,            int size) { // Borrowed from DR660 driver        byte[] buffer = new byte[size];        try {            InputStream fileIn = driver.getClass()                    .getResourceAsStream(fileName);            fileIn.read(buffer);            fileIn.close();            return driver.createPatch(buffer)[0];        } catch (IOException e) {            ErrorMsg.reportError("Error", "Unable to open " + fileName, e);            return null;        }    }