code: private MBeanSampler makeMBeanSampler(Node sample) throws Exception {
  		String delayString = selectParameterFromNode(sample, "delay", "60");
  		int delay = Integer.parseInt(delayString);
  
  		String initialDelayString = selectParameterFromNode(sample,
  				"initialdelay", "0");
  		int initialDelay = Integer.parseInt(initialDelayString);
  
  		String sampleDMax = selectParameterFromNode(sample, "dmax", "0");
  
  		MBeanSampler mBeanSampler = new MBeanSampler(initialDelay, delay,
  				processName);
  
  		NodeList mBeans = getXmlNodeSet("mbean", sample);
  		for (int j = 0; j < mBeans.getLength(); j++) {
  			Node mBean = mBeans.item(j);
  			String mBeanName = selectParameterFromNode(mBean, "name", null);
  			List<MBeanAttribute> attributes = getAttributesForMBean(mBean,
  					sampleDMax);
  			for (MBeanAttribute mBeanAttribute : attributes) {
  				addMBeanAttributeToSampler(mBeanSampler, mBeanName,
  						mBeanAttribute);
  			}
  		}
  		return mBeanSampler;
  	}
docs: A <sample> node from the XML source is parsed to make an MBeanSampler.
  
  @param sample
  @return
  @throws Exception