code: public Map<String, MBeanAttributeInfo> getAttributeMetadata() {
  
          MBeanAttributeInfo[] attributeList = mBeanInfo.getAttributes();
  
          Map<String, MBeanAttributeInfo> attributeMap = new TreeMap<String, MBeanAttributeInfo>();
          for (MBeanAttributeInfo attribute: attributeList) {
              attributeMap.put(attribute.getName(), attribute);
          }
          return attributeMap;
      }
docs: Get the Attribute metadata for an MBean by name.
  @return the {@link Map} of {@link String} attribute names to {@link MBeanAttributeInfo} values.