code: public Class<?> resolveClass(String classname) throws ClassNotFoundException {
          LOGGER.trace("Trying to resolve class {} from BundleDelegatingClassResolver", classname);
          synchronized (bundles) {
              Collection<Bundle> values = bundles.values();
              for (Bundle bundle : values) {
                  try {
                      LOGGER.trace("Trying to load class {} from bundle {}", classname, bundle.getSymbolicName());
                      Class<?> loadedClass = bundle.loadClass(classname);
                      LOGGER.debug("Loaded class {} from bundle {}", classname, bundle.getSymbolicName());
                      return loadedClass;
                  } catch (ClassNotFoundException e) {
                      LOGGER.trace("Could not load class {} from bundle {} because bundle does not contain the class",
                              classname, bundle.getSymbolicName());
                  } catch (IllegalStateException e) {
                      LOGGER.trace("Could not load class {} from bundle {} because bundle had been uninstalled",
                              classname,
                              bundle.getSymbolicName());
                  }
              }
          }
          throw new ClassNotFoundException("Class [" + classname + "] can't be resolved.");
      }
docs: {@inheritDoc}