@SuppressWarnings("unchecked")
    private Class<Object> resolveFromThisBundleOrSystemBundle(BundleInstantiationSpecification spec) {
        log.fine(() -> "Resolving class from container-disc: " + spec.classId.getName());
        try {
            return (Class<Object>) Class.forName(spec.classId.getName());
        } catch (ClassNotFoundException e) {
            if (hasFelixFramework()) {
                log.fine(() -> "Resolving class from the system bundle (jdisc core): " + spec.classId.getName());
                try {
                    return (Class<Object>) systemBundle.loadClass(spec.classId.getName());
                } catch (ClassNotFoundException e2) {
                    // empty
                }
            }
        }
        throw new IllegalArgumentException(
                "Could not create a component with class '" + spec.classId.getName() +
                        "'. Tried to load class directly, since no bundle was found for spec: " + spec.bundle +
                        ". " + bundleResolutionErrorMessage(spec.bundle));
    }
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