Fulfill the ResourceCollection contract.
if (isReference()) {
return ((FileSet) getRef(getProject())).iterator();
}
FileResourceIterator result = new FileResourceIterator(getDir());
result.addFiles(getDirectoryScanner().getIncludedFiles());
result.addFiles(getDirectoryScanner().getIncludedDirectories());
return result;