reused the generic Tree function for both jmx and camel trees now to ensure reuse and avoid bugs in different kinds of tree