for ( Iterator iter = actionPatienceSubscription.getAddedCollection().iterator(); iter.hasNext() ; ) { ActionPatience ap = (ActionPatience)iter.next(); indexActionPatience(ap, key); }
    protected void execute() {        if (!indicesCreated) {            publishAdd(new DiagnosisIndex());            publishAdd(new ActionIndex());            publishAdd(new StateEstimationIndex());            publishAdd(new CostBenefitEvaluationIndex());            if (logger.isDebugEnabled()) logger.debug("Created ALL BB Indices");            indicesCreated = true;            }              //Handle the addition of new DiagnosesWrapper(s)        for ( Iterator iter = diagnosesWrapperSubscription.getAddedCollection().iterator();            iter.hasNext() ; )         {            DiagnosesWrapper dw = (DiagnosesWrapper)iter.next();            Diagnosis d = (Diagnosis) dw.getContent();            indexDiagnosis(dw, key);            findCostBenefitEvaluation(d.getAssetID());        }                   //Handle the addition of new ActionsWrapper(s)        for ( Iterator iter = actionsWrapperSubscription.getAddedCollection().iterator();            iter.hasNext() ; )         {            ActionsWrapper aw = (ActionsWrapper)iter.next();            Action a = (Action) aw.getContent();            indexAction(aw, key);            if (logger.isDebugEnabled()) logger.debug("Indexed: "+a+" AssetID="+a.getAssetID());        }        //Handle the addition of new StateEstimation(s)        for ( Iterator iter = stateEstimationSubscription.getAddedCollection().iterator();            iter.hasNext() ; )         {            StateEstimation se = (StateEstimation)iter.next();            indexStateEstimation(se, key);        }        //Handle the addition of new CostBenefitEvaluation(s)        for ( Iterator iter = costBenefitEvaluationSubscription.getAddedCollection().iterator();            iter.hasNext() ; )         {            CostBenefitEvaluation cbe = (CostBenefitEvaluation)iter.next();            indexCostBenefitEvaluation(cbe, key);        }}