@Override
public XQExpression visit(Variable variable, XQueryContext ctxt) throws XQueryException {
if(variable instanceof ThreadedVariable) {
assert (!_threadedVars.contains(variable));
ThreadedVariable thVar = (ThreadedVariable) variable;
_threadedVars.add(thVar);
return variable;
}
return super.visit(variable, ctxt);
}