@Override
    public void endElement(String uri, String localName, String qName)
            throws SAXException {

        // Pop last element from stack
        DocumentHandlerState completed = stack.removeLast();

        // Finish element by sending text content
        completed.getTagHandler().complete(
                completed.getTextContent().toString());

    }
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