code: List<MBeanAttribute> getAttributesForMBean(Node mBean, String sampleDMax)
  			throws Exception {
  		String mBeanName = selectParameterFromNode(mBean, "name", null);
  		String mBeanPublishName = selectParameterFromNode(mBean, "pname", "");
  		String mBeanDMax = selectParameterFromNode(mBean, "dmax", sampleDMax);
  		log.finer("Mbean is " + mBeanName);
  
  		NodeList attrs = getXmlNodeSet("attribute", mBean);
  		List<MBeanAttribute> attributes = new Vector<MBeanAttribute>();
  
  		for (int i = 0; i < attrs.getLength(); i++) {
  			Node attr = attrs.item(i);
  			if (isComposite(attr)) {
  				attributes.addAll(makeCompositeAttributes(attr, mBeanName,
  						mBeanPublishName, mBeanDMax));
  			} else {
  				attributes.add(makeSimpleAttribute(attr, mBeanName,
  						mBeanPublishName, mBeanDMax));
  			}
  		}
  		return attributes;
  	}
docs: Gets a list of MBeanAttributes for a single <mbean>, they correspond to
  the <attribute> tags in the XML file.
  
  @param mBean
  the <mbean> node
  @param sampleDMax
  value of dmax passed down from <sample>
  @return a list of attributes associated to the mbean
  @throws Exception