code: @Override
      public void setPrinter(WikiPrinter printer)
      {
          // If the printer is already a XWiki Syntax Escape printer don't wrap it again. This case happens when
          // the createChainingListenerInstance() method is called, ie when this renderer's state is stacked
          // (for example when a Group event is being handled).
          if (printer instanceof XWikiSyntaxEscapeWikiPrinter) {
              super.setPrinter(printer);
          } else {
              super.setPrinter(new XWikiSyntaxEscapeWikiPrinter(printer, (XWikiSyntaxListenerChain) getListenerChain()));
          }
      }
docs: {@inheritDoc}
  
  @since 2.0M3