change the way the jmx beans are represented in the code and improve the fetching logic