public Session getHibernateSession( )
throws Exception
{
if ( _hibernateSession == null )
{
SessionFactory factory = ( SessionFactory ) _application.get( ActionServlet.SESSION_FACTORY_KEY );
_hibernateSession = factory.openSession( );
}
if ( !_hibernateSession.isOpen( ) )
{
_hibernateSession.reconnect( );