}
}
public void invokeExecutionCleanups(Execution exec, Execution parent, List errs) {
if (_execCleans != null) {
for (Iterator it = _execCleans.iterator(); it.hasNext();) {
final ExecutionCleanup listener = (ExecutionCleanup)it.next();
try {
listener.cleanup(exec, parent, errs);
} catch (Throwable ex) {
log.error("Failed to invoke "+listener, ex);
if (errs != null) errs.add(ex);
}
}