Used the wrong constructor when BundleResourceFactory failed to load nio