code: public void setManagedResource(Object o,String s)
          throws MBeanException, InstanceNotFoundException, InvalidTargetObjectTypeException
      {
          if (o!=null)
              ((HttpServer)o).addEventListener(this);
          super.setManagedResource(o,s);
      }
docs: /* ------------------------------------------------------------