code: protected void updateExtension(Extension value, String xmlTag, Counter counter, Element element)
     {
        Element root = element;
        Counter innerCount = new Counter(counter.getDepth() + 1);
        findAndReplaceSimpleElement(innerCount, root, "groupId", value.getGroupId(), null);
        findAndReplaceSimpleElement(innerCount, root, "artifactId", value.getArtifactId(), null);
        findAndReplaceSimpleElement(innerCount, root, "version", value.getVersion(), null);
     }
docs: Method updateExtension.
  
  @param value
  @param element
  @param counter
  @param xmlTag