}
protected void callScript(String blockName, RuleMatch match, RuleElement element,
RutaStream stream, InferenceCrowd crowd, RutaModule targetScript) {
RutaBlock block = targetScript.getBlock(blockName);
if (block == null) {
return;
}
List<AnnotationFS> matchedAnnotationsOf = match.getMatchedAnnotationsOf(element, stream);
for (AnnotationFS annotationFS : matchedAnnotationsOf) {
RutaStream windowStream = stream.getWindowStream(annotationFS,
stream.getDocumentAnnotationType());
ScriptApply apply = block.apply(windowStream, crowd);
match.addDelegateApply(this, apply);
}
}