/** * Configures the pipeline based on the directives. It parses the recipe, * converting it into executable directives. * * @param parser Wrangle directives parser. */ @Override public void initialize(RecipeParser parser, ExecutorContext context) throws RecipeException { this.context = context; try { this.directives = parser.parse(); } catch (DirectiveParseException e) { throw new RecipeException(e.getMessage()); } catch (DirectiveNotFoundException | DirectiveLoadException e) { throw new RecipeException(e.getMessage(), e); } }