*/
private static Map<String, Node> getFields(Node node) {
Map<String, Node> result = new HashMap<String, Node>();
Iterator<KeyValue> fields = node.fields();
while (fields.hasNext()) {
KeyValue field = fields.next();
result.put(field.getKey(), field.getValue());
}
return Collections.unmodifiableMap(result);
}