bundles.addObject(NSBundle.mainBundle());
bundles.addObjectsFromArray(frameworkBundles);
for (Enumeration<NSBundle> e = bundles.objectEnumerator(); e.hasMoreElements(); ) {
NSBundle nsbundle = e.nextElement();
NSArray<String> paths = nsbundle.resourcePathsForResources("eomodeld", null);
int pathCount = paths.count();
for (int currentPath = 0; currentPath < pathCount; currentPath++) {
String indexPath = paths.objectAtIndex(currentPath);
if(indexPath.endsWith(".eomodeld~/index.eomodeld")) {
// AK: we don't want to use temp files. This is actually an error in the