if(oldQuery.condition == null)
newQuery.condition = queryNode;
else{
Node andNode = new Node(Token.AND);
andNode.addChildToBack(oldQuery.condition);
andNode.addChildToBack(queryNode);
newQuery.condition = andNode;
}
}
else {
newQuery.condition = oldQuery.condition;