private Connection connect ( ) throws SQLException { if ( DefaultContentLoader . localDataSource == null ) { LOG . error ( "Data Source is null" ) ; return null ; } final Connection conn = DataSourceUtils . getConnection ( DefaultContentLoader . localDataSource ) ; if ( conn == null ) { LOG . error ( "Connection is null" ) ; } return conn ; }
Establish a connection to underlying db .