}
}
if ( session.isOpen() ) {
//only reset if the session is opened since you can't get the Transaction otherwise
JoinableCMTTransaction joinable = (JoinableCMTTransaction) session.getTransaction();
joinable.resetStatus();
}
}
catch (HibernateException e) {
throwPersistenceException( e );
}