if (props == null || props.getNodeType() != JsonNodeType.OBJECT)
return null;
JsonNode structured = props.get("structured");
Map<String,Integer> properties = new HashMap<String,Integer>();
if (structured != null && structured.getNodeType() == JsonNodeType.OBJECT) {
Iterator<Entry<String, JsonNode>> catIter = structured.fields();
while (catIter.hasNext()) {
Entry<String, JsonNode> catEntry = catIter.next();
String catName = catEntry.getKey();
JsonNode catNode = catEntry.getValue();
Iterator<Entry<String, JsonNode>> propIter = catNode.fields();