public static void closeQuietly(Connection con){
  if (con == null) {
    return;
  }
  try {
    con.close();
  }
 catch (  SQLException ex) {
  }
}

public static void closeQuietly ( Connection con ) { if ( con == null ) { return ; } try { con . close ( ) ; } catch ( SQLException ex ) { } }
helper method to quietly close connections .
