public void afterCompletion(int status) {
RuntimeException exceptionInAfterCompletion = null;
for(Iterator it=handlers.iterator(); it.hasNext();) {
Synchronization sync=(Synchronization)it.next();
try {
sync.afterCompletion(status);
}
catch(Throwable t) {
log.error("failed calling afterCompletion() on " + sync, t);
exceptionInAfterCompletion = (RuntimeException) t;
}