// [ARQ-459] Allow TestRunner to TestEnricher communication
BundleContext bundleContext = BundleContextAssociation.getBundleContext();
if (bundleContext == null) {
ClassLoader classLoader = BundleContextProvider.class.getClassLoader();
if (classLoader instanceof BundleReference) {
BundleReference bref = (BundleReference) classLoader;
bundleContext = bref.getBundle().getBundleContext();
bundleContext = bundleContext.getBundle(0).getBundleContext();
}
}
return bundleContext;
}