boolean global = "true".equals(globalStr);
Locale locale = (Locale) context.get("locale");
String resource = this.resourceExdr.expandString(context, locale);
ResourceBundleMapWrapper existingPropMap = (ResourceBundleMapWrapper) this.mapNameAcsr.get(context);
if (existingPropMap == null) {
this.mapNameAcsr.put(context, UtilProperties.getResourceBundleMap(resource, locale));
} else {
existingPropMap.addBottomResourceBundle(resource);
}
if (global) {
Map globalCtx = (Map) context.get("globalContext");
if (globalCtx != null) {
ResourceBundleMapWrapper globalExistingPropMap = (ResourceBundleMapWrapper) this.mapNameAcsr.get(globalCtx);
if (globalExistingPropMap == null) {
this.mapNameAcsr.put(globalCtx, UtilProperties.getResourceBundleMap(resource, locale));
} else {
// is it the same object? if not add it in here too...
if (existingPropMap != globalExistingPropMap) {
globalExistingPropMap.addBottomResourceBundle(resource);
}
}
}
}
}