agave-common/common-core/src/main/java/org/iplantc/service/common/persistence/HibernateUtil.java
/**
	 * Closes the Session local to the thread.
	 */
Closes the Session local to the thread.
Closes the Session local to the thread .
public static void closeSession()
		throws PersistenceException {
        try {
			Session s = threadSession.get();
			threadSession.set(null);
			if (s != null && s.isOpen()) {
				s.close();
			}
		} catch (HibernateException ex) {
			throw new PersistenceException(ex);
		}
	}
public static void closeSession ( ) throws PersistenceException { try { Session s = threadSession . get ( ) ; threadSession . set ( null ) ; if ( s != null && s . isOpen ( ) ) { s . close ( ) ; } } catch ( HibernateException ex ) { throw new PersistenceException ( ex ) ; } }
Closes the Session local to the thread.
Closes the Session local to the thread .
//log.debug("Closing Session of this thread.");