private Map<Object, Object> defaultSettings = Collections.emptyMap();
private Map<SessionID, Map<Object, Object>> sessionSettings = Collections.emptyMap();
public SessionSettings getObject() throws Exception {
SessionSettings settings = new SessionSettings();
settings.set(new Dictionary("defaults", defaultSettings));
for (Map.Entry<SessionID, Map<Object, Object>> sessionSetting : sessionSettings.entrySet()) {
settings.set(sessionSetting.getKey(), new Dictionary("session", sessionSetting.getValue()));
}
return settings;
}