code: public static MBeanData getMBeanData(String name) throws JMException
     {
        MBeanServer server = getMBeanServer();
        ObjectName objName = new ObjectName(name);
        MBeanInfo info = server.getMBeanInfo(objName);
  
        return new MBeanData(objName, info);
     }
docs: Get MBean data
  @param name The bean name
  @return The data
  @exception JMException Thrown if an error occurs