@Override protected boolean validateConnection(Connection conn){
  try {
    return (!conn.isClosed());
  }
 catch (  SQLException e) {
    return false;
  }
}

@ Override protected boolean validateConnection ( Connection conn ) { try { return ( ! conn . isClosed ( ) ) ; } catch ( SQLException e ) { return false ; } }
returns true if the connection is not closed .
