for (Iterator i = resources.entrySet().iterator(); i.hasNext();) {
Map.Entry entry = (Map.Entry) i.next();
ConnectionTrackingInterceptor mcci =
(ConnectionTrackingInterceptor) entry.getKey();
Set connections = (Set) entry.getValue();
mcci.exit(connections, oldUnshareableResources);
if (connections.isEmpty()) {
i.remove();
}
}
currentInstanceContexts.set(reenteringConnectorContext.getInstanceContext());