code: private Parser getSyntaxParser(Syntax syntax) throws MacroExecutionException
      {
          try {
              return this.componentManager.getInstance(Parser.class, syntax.toIdString());
          } catch (ComponentLookupException e) {
              throw new MacroExecutionException("Failed to find source parser for syntax [" + syntax + "]", e);
          }
      }
docs: Get the parser for the current syntax.
  
  @param syntax the current syntax of the title content
  @return the parser for the current syntax
  @throws org.xwiki.rendering.macro.MacroExecutionException Failed to find source parser.