protected void closeResources ( Connection connection ) { if ( cacheConnection ) return ; if ( connection != null && dataSource != null ) { try { connection . close ( ) ; } catch ( SQLException e ) { LOG . finest ( "Caught exception closing connection: " + e . getMessage ( ) + " - continuing" ) ; } } }
An extension point allowing the behavior of resource closing to be overridden in derived classes .