code: public static Object getMBeanAttributeObject(String name, String attrName) throws JMException
     {
        MBeanServer server = getMBeanServer();
        ObjectName objName = new ObjectName(name);
  
        return server.getAttribute(objName, attrName);
     }
docs: Get MBean attribute object
  @param name The bean name
  @param attrName The attribute name
  @return The data
  @exception JMException Thrown if an error occurs