@Override
public XQExpression visit(final PathVariable variable, final XQueryContext ctxt)
throws XQueryException {
final XQExpression pathExpr = variable.getValue();
if(pathExpr instanceof CompositePath) {
final CompositePath cp = (CompositePath) pathExpr;
final XQExpression srcExpr = cp.getSourceExpr();
assert (srcExpr != null);
final XQExpression filterExpr = cp.getFilterExpr();
assert (filterExpr != null);
srcExpr.visit(this, ctxt);
if(srcExpr == _target) {
variable.setValue(filterExpr);
}