if (mySelfOrgs != null && mySelfOrgs.hasChanged()) { Enumeration selfOrgEnum = mySelfOrgs.getAddedList(); if (selfOrgEnum.hasMoreElements()) { Organization selfOrgAsset = (Organization) selfOrgEnum.nextElement(); itemId = selfOrgAsset.getItemIdentificationPG().getItemIdentification(); typeId = selfOrgAsset.getTypeIdentificationPG().getTypeIdentification(); if (logger.isDebugEnabled()) { logger.debug("My itemId is " + itemId +" and my typeId is " +typeId); } idInfo.add(itemId); idInfo.add(typeId); }
if (mySelfOrgs.hasChanged()) { initIdInfo();
  protected void execute() {    if (mySelfOrgs != null && mySelfOrgs.hasChanged()) {      Enumeration selfOrgEnum = mySelfOrgs.getAddedList();      if (selfOrgEnum.hasMoreElements()) {        Organization selfOrgAsset = (Organization) selfOrgEnum.nextElement();        itemId = selfOrgAsset.getItemIdentificationPG().getItemIdentification();        typeId = selfOrgAsset.getTypeIdentificationPG().getTypeIdentification();        if (logger.isDebugEnabled()) {          logger.debug("My itemId is " + itemId +" and my typeId is " +typeId);        }        idInfo.add(itemId);        idInfo.add(typeId);      }    }    if (myOpConInfoRelaySubscription.hasChanged()) {      if (logger.isDebugEnabled()) {        logger.debug(": myOpConInfoRelaySubscription has changed!");      }      Collection addedOpConInfoRelays =        myOpConInfoRelaySubscription.getAddedCollection();            for (Iterator adds = addedOpConInfoRelays.iterator();           adds.hasNext();) {        OpConInfoRelay opiRelay = (OpConInfoRelay) adds.next();        if (logger.isDebugEnabled()) {          logger.debug("Updating the relay with: " +idInfo);        }        opiRelay.updateResponse(null, idInfo);         getBlackboardService().publishChange(opiRelay);      }    }  }