myPrivateState.opInfo.advanceStage(); sendGLS(); } else { if (logger.isDebugEnabled()) { logger.debug("GLSInitServlet: automatically advancing to next Stage"); } updateRootGLS(); }
} else if (logger.isDebugEnabled()) { logger.debug("GLSInitServlet: automatically advancing to next Stage"); } sendRootGLS();
  public void execute(){    switch (myPrivateState.listening_to) {    case LISTENING_TO_PROP_REG_SRVCS:      if (regSrvcsSubscription.hasChanged()) {        boolean readyForFP = checkIfStageComplete(regSrvcsSubscription.getChangedCollection());        if (readyForFP) {          boolean hasFindProvidersStep = checkForFindProviders();          if (hasFindProvidersStep) {            myPrivateState.initialSendFindProv = false;            myPrivateState.opInfo.advanceStage();            myPrivateState.listening_to = LISTENING_TO_PROP_FIND_PROV;            sendPropagateFindProviders();          }          else {            myPrivateState.initialSendGLS = false;            myPrivateState.opInfo.advanceStage();            myPrivateState.listening_to = LISTENING_TO_GLS;            sendGLS();          }        }      }      break;    case LISTENING_TO_PROP_FIND_PROV:      if (findProvSubscription.hasChanged()) {        boolean readyForStage = checkIfStageComplete(findProvSubscription.getChangedCollection());        if (readyForStage) {          myPrivateState.listening_to = LISTENING_TO_GLS;          if (myPrivateState.initialSendGLS) {            myPrivateState.initialSendGLS = false;            myPrivateState.opInfo.advanceStage();            sendGLS();          }          else {            if (logger.isDebugEnabled()) {              logger.debug("GLSInitServlet: automatically advancing to next Stage");            }            updateRootGLS();          }        }      }      break;    case LISTENING_TO_GLS:      if (glsSubscription.hasChanged()) {        boolean readyForNext = checkIfStageComplete(glsSubscription.getChangedCollection());        if (readyForNext) {          myPrivateState.listening_to = LISTENING_TO_NOTHING;          myPrivateState.opInfo.updateDisplayStage();          blackboard.publishChange(myPrivateState);          doNotify();        }      }      break;    }    if (requestSubscription.hasChanged()) {      processRequests(requestSubscription.getAddedCollection());    }  }