throws IOException, QueryException {
Context context = new Context();
System.out.println("=== QueryBindExample ===");
String query = "declare variable $var external; $var";
QueryProcessor processor = new QueryProcessor(query, context);
<BUG>Item string = Str.get("Hello World!\n");
Var var = new Var(new QNm(Token.token("var")));
var.bind(string, processor.ctx);
processor.ctx.vars.addGlobal(var);</BUG>
Result result = processor.execute();

throws IOException, QueryException {
Context context = new Context();
System.out.println("=== QueryBindExample ===");
String query = "declare variable $var external; $var";
QueryProcessor processor = new QueryProcessor(query, context);
Item string = Str.get("Hello World!\n");
processor.bind("var", string);
Result result = processor.execute();
