session.getLastAccessedTime(), //lastaccesstime
session.getMaxInactiveInterval()*1000L, //maxinactiveinterval
sessionState); //state
try {
backingStore.save(session.getIdInternal(), //id
simpleMetadata, !((HASession)session).isPersistent()); //TODO: Revist the last param
} catch (BackingStoreException ex) {
IOException ex1 =
(IOException) new IOException("Error during save: " + ex.getMessage()).initCause(ex);
throw ex1;