private Connection openConnection() throws SQLException {
  Connection connection=null;
  try {
    connection=dataSource.getConnection();
  }
 catch (  SQLException e) {
    throw new SQLException("Unable to open a connection to the data source",e);
  }
  return connection;
}

private Connection openConnection ( ) throws SQLException { Connection connection = null ; try { connection = dataSource . getConnection ( ) ; } catch ( SQLException e ) { throw new SQLException ( "Unable to open a connection to the data source" , e ) ; } return connection ; }
opens a connection to the data source
