code: public boolean parseUnrecognizedElement(
              final Element element,
              final Properties props) throws Exception {
          if ("plugin".equals(element.getNodeName())) {
              Object instance =
                      DOMConfigurator.parseElement(element, props, Plugin.class);
              if (instance instanceof Plugin) {
                  Plugin plugin = (Plugin) instance;
                  String pluginName = DOMConfigurator.subst(element.getAttribute("name"), props);
                  if (pluginName.length() > 0) {
                      plugin.setName(pluginName);
                  }
                  getPluginRegistry().addPlugin(plugin);
                  plugin.setLoggerRepository(this);
  
                  LogLog.debug("Pushing plugin on to the object stack.");
                  plugin.activateOptions();
                  return true;
              }
          }
          return false;
      }
docs: {@inheritDoc}