code: protected void updateDistributionManagement(DistributionManagement value, String xmlTag, Counter counter,
              Element element)
     {
        boolean shouldExist = value != null;
        Element root = updateElement(counter, element, xmlTag, shouldExist);
        if (shouldExist)
        {
           Counter innerCount = new Counter(counter.getDepth() + 1);
           updateDeploymentRepository(value.getRepository(), "repository", innerCount, root);
           updateDeploymentRepository(value.getSnapshotRepository(), "snapshotRepository", innerCount, root);
           updateSite(value.getSite(), "site", innerCount, root);
           findAndReplaceSimpleElement(innerCount, root, "downloadUrl", value.getDownloadUrl(), null);
           updateRelocation(value.getRelocation(), "relocation", innerCount, root);
           findAndReplaceSimpleElement(innerCount, root, "status", value.getStatus(), null);
        }
     }
docs: Method updateDistributionManagement.
  
  @param value
  @param element
  @param counter
  @param xmlTag