/**
* map of participant-id to map of resource-id to current-state
*/
Map<String, Map<String, CurrentState>> currentStateMap = Maps.newHashMap();
for (String participantName : liveInstanceMap.keySet()) {
LiveInstance liveInstance = liveInstanceMap.get(participantName);
SessionId sessionId = liveInstance.getTypedSessionId();
Map<String, CurrentState> instanceCurStateMap;
if (useCache) {
instanceCurStateMap = _cache.getCurrentState(participantName, sessionId.stringify());
} else {
instanceCurStateMap =
_accessor.getChildValuesMap(_keyBuilder.currentStates(participantName,
sessionId.stringify()));
}
currentStateMap.put(participantName, instanceCurStateMap);
}
// read all the participants
Map<ParticipantId, Participant> participantMap = Maps.newHashMap();
for (String participantName : instanceConfigMap.keySet()) {
InstanceConfig instanceConfig = instanceConfigMap.get(participantName);
UserConfig userConfig = instanceConfig.getUserConfig();
LiveInstance liveInstance = liveInstanceMap.get(participantName);
Map<String, Message> instanceMsgMap = messageMap.get(participantName);
ParticipantId participantId = ParticipantId.from(participantName);
participantMap.put(