throw new IOException("Cannot find BlockDeviceAPI", ex);
final IOException ioe = new IOException("BlockDeviceAPI not found on device"); ioe.initCause(ex); throw ioe;
    protected void formatDevice(Device dev) throws IOException {        GrubFatFormatter ff = createFormatter();        try {            ff.format((BlockDeviceAPI) dev.getAPI(BlockDeviceAPI.class));        } catch (ApiNotFoundException ex) {            throw new IOException("Cannot find BlockDeviceAPI", ex);        }    }