try {
ResourceHandle handleInTransaction = getResourceHandle();
if (!localHandle_.equals(handleInTransaction)) {
LocalTxConnectionEventListener l = (LocalTxConnectionEventListener) handleInTransaction.getListener();
ResourceHandle handle = l.removeAssociation(userHandle);
if (handle != null) { // not needed, just to be sure.
ManagedConnection associatedConnection = (ManagedConnection) handle.getResource();
associatedConnection.associateConnection(userHandle);
if (_logger.isLoggable(Level.FINE)) {
_logger.log(Level.FINE, "connection_sharing_reset_association",