PendingOp o = pendingOps.get(evt.getActionId());
if (o != null){
o.notifyOpSuccess();
}
} else if (ev instanceof ActionFailedEvent){
ActionFailedEvent evt = (ActionFailedEvent)ev;
PendingOp o = pendingOps.get(evt.getActionId());
if (o != null){
o.notifyOpFailure(evt.getFailureMsg(), evt.getFailureDescr());
}
}
}