code: public WebMBeanAdapter createWebMBeanAdapter(String mBeanName, String encoding)
              throws JMException, UnsupportedEncodingException {
          return new WebMBeanAdapter(mBeanServer, mBeanName, encoding);
      }
docs: Create a WebMBeanAdaptor for a specified MBean name.
  @param mBeanName the MBean name (can be URL-encoded).
  @param encoding the string encoding to be used (i.e. UTF-8)
  @return the created WebMBeanAdaptor.
  @throws JMException Java Management Exception
  @throws UnsupportedEncodingException if the encoding is not supported.