@SuppressWarnings("unchecked")
    private static Class<Object> resolveFromBundle(BundleInstantiationSpecification spec, Bundle bundle) {
        try {
            ensureBundleActive(bundle);
            return (Class<Object>) bundle.loadClass(spec.classId.getName());
        } catch (ClassNotFoundException e) {
            throw new IllegalArgumentException("Could not load class '" + spec.classId.getName() +
                                               "' from bundle " + bundle, e);
        }
    }
Tries to resolve the given class from this class' bundle.
If unsuccessful, resolves the class from the system bundle (jdisc_core).
container-core/src/main/java/com/yahoo/osgi/OsgiImpl.java