code: public void endElement(String namespaceUri,
                             String localName,
                             String qualifiedName)
              throws SAXException {
          currentElement = null;
          currentDepth--;
          String indentation = indent(-1);
          String closingElement = "</" + getName(localName, qualifiedName) + ">";
          write(currentlyInLeafElement ? closingElement : nl + indentation + closingElement);
          currentlyInLeafElement = false;
          this.currentElement = null;
          if (frozenArtifactResolver.artifactInheritsVersionFromParent() &&
              ARTIFACT_ID.equals(qualifiedName) &&
              currentDepth == 1) {
              logger.info("[Freezehandler]: Artifact version " + frozenArtifactResolver.artifactFrozenVersion());
              write(nl + indentation + "<" + VERSION + ">" + frozenArtifactResolver.artifactFrozenVersion() + "</" + VERSION + ">");
          }
          switch (qualifiedName) {
              case GROUP_ID:
              case ARTIFACT_ID:
              case PACKAGING:
              case RELATIVE_PATH:
              case "":
                  break;
              case VERSION:
              default:
                  this.currentGroupIdArtifactIdVersion = new GroupIdArtifactIdVersion();
          }
      }
docs: Overrides <code>endElement()</code> in
  <code>org.xml.sax.helpers.DefaultHandler</code>,
  which in turn implements <code>org.xml.sax.ContentHandler</code>.
  Called for each start tag encountered.