Preferences workingNode = m_prefs.node(PREFS_LOCAL_WORKING_STATE);
Map<String, WorkingState> entries = new HashMap<String, WorkingState>();
// First, get all nodes and their workingstate.
try {
for (String node : workingNode.childrenNames()) {
String state = workingNode.node(node).get(PREFS_LOCAL_WORKING_STATE_VALUE, WorkingState.Unchanged.toString());
entries.put(node, WorkingState.valueOf(state));
}
}
catch (BackingStoreException e) {
// Something went wrong reading from the store, just work with whatever we have in the map.