Source:
<code>public Configuration getConfiguration(GraphContext context) { Configuration configuration = ConfigurationBuilder.begin() .addRule() .when(Query.find(TestXmlMetaFacetModel.class).as("xmlModels")) .perform(Iteration .over(TestXmlMetaFacetModel.class, "xmlModels") .when(new AbstractIterationFilter<TestXmlMetaFacetModel>(TestXmlMetaFacetModel.class, Iteration.singleVariableIterationName("xmlModels")) { @Override public boolean evaluate(GraphRewrite event, EvaluationContext context, TestXmlMetaFacetModel payload) { String rootTagName = payload.getRootTagName(); boolean result = !"xmlTag3".equals(rootTagName); return result; } }) .perform(new AbstractIterationOperation<TestXmlMetaFacetModel>(TestXmlMetaFacetModel.class, <START> Iteration.singleVariableIterationName("xmlModels")) <END> { @Override public void perform(GraphRewrite event, EvaluationContext context, TestXmlMetaFacetModel xmlFacetModel) { typeSearchResults.add(xmlFacetModel); if (xmlRootNames.contains(xmlFacetModel.getRootTagName())) { Assert.fail("Tag found multiple times"); } xmlRootNames.add(xmlFacetModel.getRootTagName()); } }) .otherwise(new AbstractIterationOperation<TestXmlMetaFacetModel>(TestXmlMetaFacetModel.class, Iteration.singleVariableIterationName("xmlModels")) { @Override public void perform(GraphRewrite event, EvaluationContext context, TestXmlMetaFacetModel payload) { typeSearchResults.add(payload); if (excludedXmlRootNames.contains(payload.getRootTagName())) { Assert.fail("Tag found multiple times"); } excludedXmlRootNames.add(payload.getRootTagName()); } }) .endIteration() ); return configuration; }</code><technical_language>a new constructor requires type of element iterate</technical_language>

Target:
public Configuration getConfiguration(GraphContext context) { Configuration configuration = ConfigurationBuilder.begin() .addRule() .when(Query.find(TestXmlMetaFacetModel.class)) .perform(Iteration .over() .when(new AbstractIterationFilter<TestXmlMetaFacetModel>(TestXmlMetaFacetModel.class, Iteration.DEFAULT_SINGLE_VARIABLE_STRING) { @Override public boolean evaluate(GraphRewrite event, EvaluationContext context, TestXmlMetaFacetModel payload) { String rootTagName = payload.getRootTagName(); boolean result = !"xmlTag3".equals(rootTagName); return result; } }) .perform(new AbstractIterationOperation<TestXmlMetaFacetModel>(TestXmlMetaFacetModel.class, Iteration.DEFAULT_SINGLE_VARIABLE_STRING) { @Override public void perform(GraphRewrite event, EvaluationContext context, TestXmlMetaFacetModel xmlFacetModel) { typeSearchResults.add(xmlFacetModel); if (xmlRootNames.contains(xmlFacetModel.getRootTagName())) { Assert.fail("Tag found multiple times"); } xmlRootNames.add(xmlFacetModel.getRootTagName()); } }) .otherwise(new AbstractIterationOperation<TestXmlMetaFacetModel>(TestXmlMetaFacetModel.class,Iteration.DEFAULT_SINGLE_VARIABLE_STRING) { @Override public void perform(GraphRewrite event, EvaluationContext context, TestXmlMetaFacetModel payload) { typeSearchResults.add(payload); if (excludedXmlRootNames.contains(payload.getRootTagName())) { Assert.fail("Tag found multiple times"); } excludedXmlRootNames.add(payload.getRootTagName()); } }) .endIteration() ); return configuration; }