public Call pop() {
        if (elements.isEmpty()) return null;
        lastPopped = elements.remove(0);
        return lastPopped;
    }
Returns and removes the next element, or null if there are no more elements
docproc/src/main/java/com/yahoo/docproc/CallStack.java