@Override
    public String toString() {
        StringBuilder b = new StringBuilder("callstack");
        if (name != null) {
            b.append(" ");
            b.append(name);
        }
        b.append(":");
        for (Iterator<Call> i = iterator(); i.hasNext();) {
            b.append("\n");
            b.append("  ");
            b.append(i.next().toString());
        }
        b.append("\n");
        return b.toString();
    }
Returns the number of remaining elements in this stack
docproc/src/main/java/com/yahoo/docproc/CallStack.java