public void endElement()

in src/main/java/org/apache/sling/tooling/support/source/impl/PomHandler.java [71:88]


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

        // project/dependencies/dependency
        if ( elements.size() == 3 && qName.equals("dependency")) {
            if ( groupId.startsWith("org.eclipse.jetty")) {
                references.add(new SourceReference(groupId, artifactId, jettyVersion));
            } else if ( groupId.startsWith("org.apache.felix")) {
                references.add(new SourceReference(groupId, artifactId, version));
            }
            
            artifactId = null;
            groupId = null;
            version = null;
        }

        
        elements.removeLast();
    }