if (sessionFile.exists()) {
logger.info("Activating from file " + sessionFile);
final ObjectInputStream ois = new EjbObjectInputStream(IO.read(sessionFile));
try {
return ois.readObject();
} finally {
IO.close(ois);
if (!sessionFile.delete()) {
sessionFile.deleteOnExit();
}