final Application app,
final boolean includeTopLevel,
final Map<String,ReadableArchive> probablePersistentArchives) {
//Get probable archives from root of the ear
if (includeTopLevel) {
SubArchivePURootScanner earRootScanner = new EARTopLevelJARPURootScanner(app);
probablePersistentArchives.putAll(
PersistenceArchivist.getProbablePersistenceRoots(earArchive, earRootScanner));
}
//Geather all jars in lib of ear
SubArchivePURootScanner libPURootScannerScanner = new EARLibraryPURootScanner(app);
probablePersistentArchives.putAll(
PersistenceArchivist.getProbablePersistenceRoots(earArchive, libPURootScannerScanner));
}