code: protected void updateResource(Resource value, String xmlTag, Counter counter, Element element)
     {
        Element root = element;
        Counter innerCount = new Counter(counter.getDepth() + 1);
        findAndReplaceSimpleElement(innerCount, root, "targetPath", value.getTargetPath(), null);
        findAndReplaceSimpleElement(innerCount, root, "filtering",
                 (value.isFiltering() == false) ? null : String.valueOf(value.isFiltering()), "false");
        findAndReplaceSimpleElement(innerCount, root, "directory", value.getDirectory(), null);
        findAndReplaceSimpleLists(innerCount, root, value.getIncludes(), "includes", "include");
        findAndReplaceSimpleLists(innerCount, root, value.getExcludes(), "excludes", "exclude");
     }
docs: Method updateResource.
  
  @param value
  @param element
  @param counter
  @param xmlTag