// event because the Bundle's class loader is not (yet) available
// We manually add the resource to the {@link RuntimeEnvironment}
Resource envres = environment.getResource(resid);
if (envres == null && module != null) {
RuntimeEnvironment runtimeEnv = RuntimeEnvironment.assertRuntimeEnvironment(environment);
runtimeEnv.addRuntimeResource(resource);
}
return new BundleResourceHandle(resource, module, bundle);
}