public Map<String, TileGroupState> getActiveGroups() {
Map<String, TileGroupState> result = new HashMap<>();
NodeList nl = getSecondLevelElelents("tiles", "group");
for (int i = 0; i < nl.getLength(); i++) {
Element el = (Element) nl.item(i);
TileGroupState state = TileGroupState.valueOf(el.getAttribute("state"));
result.put(el.getAttribute("name"), state);
}
return result;
}