code: protected void updateProfile(Profile value, String xmlTag, Counter counter, Element element)
     {
        Element root = element;
        Counter innerCount = new Counter(counter.getDepth() + 1);
        findAndReplaceSimpleElement(innerCount, root, "id", value.getId(), null);
        updateActivation(value.getActivation(), "activation", innerCount, root);
        updateBuildBase(value.getBuild(), "build", innerCount, root);
        findAndReplaceSimpleLists(innerCount, root, value.getModules(), "modules", "module");
        iterateRepository(innerCount, root, value.getRepositories(), "repositories", "repository");
        iterateRepository(innerCount, root, value.getPluginRepositories(), "pluginRepositories", "pluginRepository");
        iterateDependency(innerCount, root, value.getDependencies(), "dependencies", "dependency");
        findAndReplaceXpp3DOM(innerCount, root, "reports", (Xpp3Dom) value.getReports());
        updateReporting(value.getReporting(), "reporting", innerCount, root);
        updateDependencyManagement(value.getDependencyManagement(), "dependencyManagement", innerCount, root);
        updateDistributionManagement(value.getDistributionManagement(), "distributionManagement", innerCount, root);
        findAndReplaceProperties(innerCount, root, "properties", value.getProperties());
     }
docs: Method updateProfile.
  
  @param value
  @param element
  @param counter
  @param xmlTag