question: public void shutdown ( ) throws DataSourceException { if ( createdSessionFactory ) { if ( sessionFactory != null && ! sessionFactory . isClosed ( ) ) { try { sessionFactory . close ( ) ; } finally { sessionFactory = null ; } } } }
target:  Shuts down the data source. If the session factory was created by this data source, will close it.