code: 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;
      }
docs: Establish a connection to underlying db.
  
  @return
  @throws ClassNotFoundException
  @throws SQLException