*/
public void build(final BuildContext context,
final BuildUtils utils,
final RuleConditionElement rce) {
final QueryElement qe = (QueryElement) rce;
context.pushRuleComponent( qe );
final int currentOffset = context.getCurrentPatternOffset();
qe.getResultPattern().setOffset( currentOffset );
utils.checkUnboundDeclarations( context,
qe.getRequiredDeclarations() );
context.setTupleSource( (LeftTupleSource) utils.attachNode( context,
new QueryElementNode( context.getNextId(),
context.getTupleSource(),
qe,
context.isTerminalNodeMemoryEnabled(),
qe.isOpenQuery(),
context ) ) );
context.popRuleComponent();
context.incrementCurrentPatternOffset();
}