code: protected void updateReporting(Reporting 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, "excludeDefaults",
                    (value.isExcludeDefaults() == false) ? null : String.valueOf(value.isExcludeDefaults()), "false");
           findAndReplaceSimpleElement(innerCount, root, "outputDirectory", value.getOutputDirectory(), null);
           iterateReportPlugin(innerCount, root, value.getPlugins(), "plugins", "plugin");
        }
     }
docs: Method updateReporting.
  
  @param value
  @param element
  @param counter
  @param xmlTag