private void weaveTemplateDeclaration(SNode template,
SNode outputContextNode, @NotNull TemplateContext context, @NotNull TemplateExecutionEnvironment environment)
</BUG>
throws GenerationFailureException, GenerationCanceledException {
environment.getTracer().pushInputNode(GenerationTracerUtil.getSNodePointer(context.getInput()));
try {
<BUG>weaveTemplateDeclaration_intern(template, outputContextNode, context, environment);
} finally {</BUG>
environment.getTracer().closeInputNode(GenerationTracerUtil.getSNodePointer(context.getInput()));
}

Collection<SNode> queryNodes = environment.getReductionContext().getQueryExecutor().evaluateSourceNodesQuery(context.getInput(), ruleNode, null, query, context);
if (queryNodes.isEmpty()) {
return false;
