logger.debug("Published AllAssetsSeenCondition.");
if (logger.isDebugEnabled()) logger.debug("Published AllAssetsSeenCondition.");
    public void execute() {        if (!haveServices) {            getServices();            if (!haveServices) {                //throw some nasty error...                Logger logger = Logging.getLogger(this.getClass().getName());                logger.error("------------------> Could not get needed services!!");                return;            }        }                sendEvents();/*        if ((wakeAlarm != null) &&        ((wakeAlarm.hasExpired()))) {            logger.debug("Perform periodic tasks");            wakeAlarm = new WakeAlarm(now() + TIMER_INTERVAL);            alarmService.addRealTimeAlarm(wakeAlarm);        } */                Collection models = communityStatusModelSub.getAddedCollection();        for (Iterator it = models.iterator(); it.hasNext();) {            CommunityStatusModel csm = (CommunityStatusModel)it.next();            logger.info("************************ Found CommunityStatusModel: community=" + csm.getCommunityName());            csm.addChangeListener(myChangeListener);                        //According to Ron there will be only ONE csm per BB.            this.csm = csm;                        //get all agents already known by the csm - called once.            getCurrentAssetsInCSM();        }                if (!emittedAssetCountCondition && assetCount >= expectedAssetCount) {            blackboard.publishAdd(new AllAssetsSeenCondition());            emittedAssetCountCondition = true;            logger.debug("Published AllAssetsSeenCondition.");        }                    }