if (!allCurStateMap.containsKey(instanceName)) {
allCurStateMap.put(instanceName, new HashMap<String, Map<String, CurrentState>>());
}
Map<String, Map<String, CurrentState>> curStateMap = allCurStateMap.get(instanceName);
Map<String, CurrentState> map =
accessor.getChildValuesMap(keyBuilder.currentStates(instanceName, sessionId));
curStateMap.put(sessionId, map);
}
for (String instance : allCurStateMap.keySet()) {
allCurStateMap.put(instance, Collections.unmodifiableMap(allCurStateMap.get(instance)));