}
while (stack.size() - 1 > size)
{
Node top = (Node) stack.pop();
Node peek = ((Node) stack.peek());
peek.insertChildNode(top);
}
Node expr = (Node) stack.pop();
Node newExpr = new Node(Node.CREATOR);
newExpr.insertChildNode(expr);
stack.push(newExpr);