if (stmt != null) stmt.close(); if (conn != null) releaseConnection(conn);
  private void closeConnection(PreparedStatement stmt, Connection conn)  {    try    {      if (conn != null)        if (conn.getAutoCommit() == false)          conn.rollback();      if (stmt != null)        stmt.close(); // close statement      if (conn != null)        releaseConnection(conn);    }    catch (Exception ignore)    {    }  }