protected boolean shouldSave(File aFile) { boolean loaded = isLoadedResourceOrManifest(aFile); if (loaded) { Resource res = archive.getLoadStrategy().getExistingMofResource(aFile.getURI()); if (res == null) return false; //must be manifest return !shouldSave(res); } if (getArchive().isModuleFile()) { ModuleFile m = (ModuleFile) getArchive(); if (m.getExportStrategy() != null && m.getExportStrategy().hasSaved(aFile.getURI())) return false; } return shouldSave(aFile.getURI()); }