public IncludeExcludeVisitorAttributes(Set<String> includes, Set<String> excludes) { if (includes == null) { includes = Collections.emptySet(); } if (excludes == null) { excludes = Collections.emptySet(); } this.includes = includes; this.excludes = excludes; setIncludeRoot(false); setLeavesOnly(true); setRecurseFilter(this); }