write(id);
} catch (IOException e) {
// do not throw IOException from here since ObjectOutputStream
// will write the exception to the stream, which causes another
// call here, etc.
throw new RuntimeExceptionWrapper(e);
} catch (ClassNotFoundException e) {
throw new RuntimeExceptionWrapper(e);
}
}