diagnosesWrapperSubscription = ( IncrementalSubscription ) getBlackboardService().subscribe( new UnaryPredicate() { public boolean execute(Object o) { if ( o instanceof DiagnosesWrapper) { return true ; } return false ; } }) ;
knobSubscription = (IncrementalSubscription) getBlackboardService().subscribe(ActionSelectionKnob.pred);
  public void setupSubscriptions() {         super.setupSubscriptions();         diagnosesWrapperSubscription = ( IncrementalSubscription ) getBlackboardService().subscribe( new UnaryPredicate() {            public boolean execute(Object o) {                if ( o instanceof DiagnosesWrapper) {                    return true ;                }                return false ;            }        }) ;                 if (logger.isDebugEnabled()) logger.debug("Loading DefenseSelectionPlugin");         getPluginParams();         initObjects();            //Listen for new CostBenefitEvaluations     costBenefitSubscription = (IncrementalSubscription ) getBlackboardService().subscribe(CostBenefitEvaluation.pred);     //Listen for Failed Actions     failedActionSubscription = ( IncrementalSubscription ) getBlackboardService().subscribe(FailedActionWrapper.pred);     //Access to the SelectionKnob     knobSubscription = (IncrementalSubscription) getBlackboardService().subscribe(ActionSelectionKnob.pred);/*     // Does this really belong here?  Shouldn't the Servlet subscribe to the BB and pick up whatever it needs itself?     testServletSubscription = (IncrementalSubscription ) getBlackboardService().subscribe( new UnaryPredicate() {        public boolean execute(Object o) {            if ( o instanceof TestObservationServlet ) {                return true ;            }            return false ;        }     });*/          //Unsure of use...     if (blackboard.didRehydrate()) { //reset to null so it gets established again after rehydration -- IS THIS RIGHT??         //this.testServlet = null;     }       }