public int getCurrentDepth() {
        return stack.size();
    }
Returns the element depth of the parser's current position in the XML
document being parsed.

@return The element depth of the parser's current position in the XML
        document being parsed.
aws-java-sdk-core/src/main/java/com/amazonaws/transform/StaxUnmarshallerContext.java