code: private void initMBean()  {
          try {
              registerMBean(this,getObjectName());
          } catch (InstanceAlreadyExistsException exp) {
              // This is no problem, since this MBeanServerHandlerMBean holds only global information
              // with no special state (so all instances of this MBean behave similar)
              // This exception can happen, when multiple servlets get registered within the same JVM
          } catch (MalformedObjectNameException e) {
              // Cannot happen, otherwise this is a bug. We should be always provide our own name in correct
              // form.
              throw new IllegalStateException("Internal Error: Own ObjectName " + getObjectName() + " is malformed",e);
          } catch (NotCompliantMBeanException e) {
              // Same here
              throw new IllegalStateException("Internal Error: " + this.getClass().getName() + " is not a compliant MBean",e);
          }
      }
docs: Initialise this server handler and register as an MBean