}
private void smartImportZipArchive(File file, String... extensions) {
// first try to get files from nested sources
Entry nestedSources = null;
for (Entry each: new Ziperator(file)) {
if (nestedSources == null && each.isSourceArchive()) nestedSources = each;
if (each.parent != null && each.parent == nestedSources) {
for (String ext: extensions) {
if (each.entry.getName().endsWith(ext)) {
corpus.putDocument(each.toString(), new Terms(each.in));