code: protected void updateBuild(Build 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);
           findAndReplaceSimpleElement(innerCount, root, "sourceDirectory", value.getSourceDirectory(), null);
           findAndReplaceSimpleElement(innerCount, root, "scriptSourceDirectory", value.getScriptSourceDirectory(),
                    null);
           findAndReplaceSimpleElement(innerCount, root, "testSourceDirectory", value.getTestSourceDirectory(), null);
           findAndReplaceSimpleElement(innerCount, root, "outputDirectory", value.getOutputDirectory(), null);
           findAndReplaceSimpleElement(innerCount, root, "testOutputDirectory", value.getTestOutputDirectory(), null);
           iterateExtension(innerCount, root, value.getExtensions(), "extensions", "extension");
           findAndReplaceSimpleElement(innerCount, root, "defaultGoal", value.getDefaultGoal(), null);
           iterateResource(innerCount, root, value.getResources(), "resources", "resource");
           iterateResource(innerCount, root, value.getTestResources(), "testResources", "testResource");
           findAndReplaceSimpleElement(innerCount, root, "directory", value.getDirectory(), null);
           findAndReplaceSimpleElement(innerCount, root, "finalName", value.getFinalName(), null);
           findAndReplaceSimpleLists(innerCount, root, value.getFilters(), "filters", "filter");
           updatePluginManagement(value.getPluginManagement(), "pluginManagement", innerCount, root);
           iteratePlugin(innerCount, root, value.getPlugins(), "plugins", "plugin");
        } // end if
     }
docs: Method updateBuild.
  
  @param value
  @param element
  @param counter
  @param xmlTag