code: public Object getMBeanAttribute(final ObjectName name, final String attribute) {
      try {
        return getMbeanServer().getAttribute(name, attribute);
      } catch (final Exception e) {
        logger.error(
            "Retrieve MBeanServer attribute Failure. "
                + "ObjectName = " + name.toString() + ", "
                + "attribute = " + attribute,
            e);
        return null;
      }
    }
docs: Get MBean Attribute
  @param name mbean name
  @param attribute attribute name
  @return object of MBean Attribute