boolean preparable =
PreparableMatcher.class.isAssignableFrom(clazz) &&
!VariableResolverFactory.needsResolve(pattern);
// Instanciate appropriate node
SimpleSelectorProcessingNode node;
VariableResolver patternResolver = VariableResolverFactory.getResolver(pattern, this.manager);
if (preparable) {
node = new PreparableMatchNode(type, VariableResolverFactory.unescape(pattern),name);
} else {
node = new MatchNode(type, patternResolver,name);
}
this.treeBuilder.setupNode(node, config);
// Get all children
ProcessingNode[] children = buildChildNodes(config);
node.setChildren(children);
return node;
}