protected boolean isSavedConnection(DatabaseConnection connection){
  NestedConnection currentSaved=specialConnection.get();
  if (currentSaved == null) {
    return false;
  }
 else   if (currentSaved.connection == connection) {
    return true;
  }
 else {
    return false;
  }
}

protected boolean isSavedConnection ( DatabaseConnection connection ) { NestedConnection currentSaved = specialConnection . get ( ) ; if ( currentSaved == null ) { return false ; } else if ( currentSaved . connection == connection ) { return true ; } else { return false ; } }
return true if the connection being released is the one that has been saved .
