Connection priorConnection = (Connection)currentConnection.get();
currentConnection.set( connection );
// We return the prior connection, if any, to give the application
// the opportunity to deal with it, if so desired. It's important
// that all database connections be properly closed.
return priorConnection;