code: @Override
      public void applicationStarting(ApplicationInfo appInfo) throws StateChangeException {
          setFutureGeneratePluginTask();
          this.appsInService++;
          if (smgr != null)
              this.cookieNames.put(appInfo.getName(), smgr.getDefaultAffinityCookie());
  
          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
              Tr.debug(this, tc, "application starting, add app to cookie map. app name : " + appInfo.getName() + ", cookie name : " + smgr.getDefaultAffinityCookie());
      }
docs: /*
  (non-Javadoc
  
  @see com.ibm.ws.container.service.state.ApplicationStateListener#applicationStarting(com.ibm.ws.container.service.app.deploy.ApplicationInfo)