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 ) ; } }
Get the parser for the current syntax .