/* 223 */ file.deleteOnExit();
/* 224 */ log.debug("saving state to " + file);
/* */ try
/* */ {
/* 227 */ FileOutputStream fos = FOSAction.open(file);
/* 228 */ ObjectOutputStream out = new JBossObjectOutputStream(fos);
/* */ try
/* */ {
/* 231 */ out.writeObject(obj);
/* 232 */ out.flush();
/* */ }
/* */ finally
/* */ {
/* 236 */ out.close();
/* */ }
/* */ }
/* */ catch (IOException e)
/* */ {
/* 241 */ throw new RuntimeException("failed to store object " + obj.getId(), e);