code: public boolean parseUnrecognizedElement(final Element element,
                                              final Properties props) throws Exception {
          final String nodeName = element.getNodeName();
          if ("rewritePolicy".equals(nodeName)) {
              Object rewritePolicy =
                      org.apache.log4j.xml.DOMConfigurator.parseElement(
                              element, props, RewritePolicy.class);
              if (rewritePolicy != null) {
                  if (rewritePolicy instanceof OptionHandler) {
                      ((OptionHandler) rewritePolicy).activateOptions();
                  }
                  this.setRewritePolicy((RewritePolicy) rewritePolicy);
              }
              return true;
          }
          return false;
      }
docs: {@inheritDoc}