private DocumentHandlerState getCurrentState() {

        // If no state, return null
        if (stack.isEmpty())
            return null;

        return stack.getLast();
    }
Returns the current element state. The current element state is the
state of the element the parser is currently within.

@return The current element state.
guacamole-ext/src/main/java/org/apache/guacamole/xml/DocumentHandler.java