protected final void unassociateAll() {
ArrayList toFlush = getAssociatedContexts();
for (Iterator i = toFlush.iterator(); i.hasNext();) {
InstanceContext context = (InstanceContext) i.next();
try {
context.unassociate();
} catch (Throwable throwable) {
log.warn("Error while unassociating instance from transaction context: " + context, throwable);
}
}
}