Performance enhancement, the reduce function now works directly on the tree of java objects instead of a Javascript object tree.