//
public void notifyCartagoEvent(CartagoEvent ev){
if (ev instanceof ActionSucceededEvent){
ActionSucceededEvent evt = (ActionSucceededEvent)ev;
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());
}
}
}