First go at it.
Its working at the moment, but needs some love to make it more efficient
and to allow for querying MBeans as some names are dynamically generated
at runtime.