You might consider moving the is-a-rollup-file logic to here and using a FileFilter or FileNameFilter.