code: public void doFinally() {
          if (conn != null) {
              try {
                  if ((isolation != Connection.TRANSACTION_NONE)
                          && (isolation != origIsolation)) {
                      conn.setTransactionIsolation(origIsolation);
                  }
                  conn.setAutoCommit(true);
                  conn.close();
              } catch (SQLException e) {
                  // Not much we can do
              }
          }
          conn = null;
          isolation = Connection.TRANSACTION_NONE;
      }
docs: Restores the <code>Connection</code> to its initial state and
  closes it.