private void addObject(Weblogic6xObject weblogic6xobject, Weblogic6xObject weblogic6xobject1) {
    Weblogic6xObject weblogic6xobject2;
    try {
      Object obj = weblogic6xobject.getParentName();
      weblogic6xobject2 = (Weblogic6xObject) addedMBeans.get(obj);
      if (weblogic6xobject2 == null) {
        weblogic6xobject2 = new Weblogic6xObject(obj, mbs, management);
        addObject(weblogic6xobject2, weblogic6xobject1);
      }
    } catch (Exception exception) {
      weblogic6xobject2 = weblogic6xobject1;
    }
    weblogic6xobject.setParent(weblogic6xobject2);
    weblogic6xobject2.addSubObject(weblogic6xobject);
    addedMBeans.put(weblogic6xobject.getObjectName(), weblogic6xobject);
    if (weblogic6xobject.getType().equals("WebAppComponentRuntime")) {
      try {
        Object aobj[] =
            (Object[])
                management.getAttributeMethod.invoke(
                    mbs, new Object[] {weblogic6xobject.getObjectName(), "Servlets"});
        for (int i = 0; i < aobj.length; i++) {
          if (!addedMBeans.containsKey(aobj[i])) {
            Weblogic6xObject weblogic6xobject3 =
                new Weblogic6xObject(aobj[i], weblogic6xobject, mbs, management);
            weblogic6xobject.addSubObject(weblogic6xobject3);
          }
        }

      } catch (Exception exception1) {
        exception1.printStackTrace();
      }
    }
  }