String tokenId = (String) synCtx.getProperty(AutoscaleConstants.REQUEST_ID);
@SuppressWarnings("unchecked")
Map<String, Map<String, AppDomainContext>> appDomainContexts =
(Map<String, Map<String, AppDomainContext>>) configCtx.getPropertyNonReplicable(AutoscaleConstants.APP_DOMAIN_CONTEXTS);
AppDomainContext appDomainContext = null ;
if(appDomainContexts.get(domain) != null){
appDomainContext = appDomainContexts.get(domain).get(subDomain);
}
if (appDomainContext != null) {
appDomainContext.removeRequestToken(tokenId);
System.setProperty(AutoscaleConstants.IS_TOUCHED, "true");
} else {
log.debug("AppDomainContext not found for domain " + domain+" and sub domain : "+subDomain);
}
return true;