agave-common/common-core/src/main/java/org/iplantc/service/common/persistence/HibernateUtil.java
/**
	 * Reconnects a Hibernate Session to the current Thread.
	 *
	 * @param session The Hibernate Session to be reconnected.
	 */
Reconnects a Hibernate Session to the current Thread.
@param session The Hibernate Session to be reconnected.
Reconnects a Hibernate Session to the current Thread . @param session The Hibernate Session to be reconnected .
@SuppressWarnings("deprecation")
	public static void reconnect(Session session)
		throws PersistenceException {
		try {
			session.reconnect();
			threadSession.set(session);
		} catch (HibernateException ex) {
			throw new PersistenceException(ex);
		}
	}
@ SuppressWarnings ( "deprecation" ) public static void reconnect ( Session session ) throws PersistenceException { try { session . reconnect ( ) ; threadSession . set ( session ) ; } catch ( HibernateException ex ) { throw new PersistenceException ( ex ) ; } }
Reconnects a Hibernate Session to the current Thread.
Reconnects a Hibernate Session to the current Thread .