private void closeConnection(Connection connection) throws SQLException {
  if (connection != null) {
    try {
      connection.close();
    }
 catch (    SQLException e) {
      throw new SQLException("Failed to close a connection to the data source.",e);
    }
  }
}

private void closeConnection ( Connection connection ) throws SQLException { if ( connection != null ) { try { connection . close ( ) ; } catch ( SQLException e ) { throw new SQLException ( "Failed to close a connection to the data source." , e ) ; } } }
closes a connection to the data source quietly
