code: private Class<?> getClassFromBundle(Object resource, String className, String versionRange)
      {
          Class<?> c = null;
          if (resource == null)
          {
              Object classAccess = this.getClassBundleService(null, className, versionRange, null, 0);
              if (classAccess != null)
              {
              	try {
                  	c = Class.forName(className);
                  } catch (ClassNotFoundException e) {
                      e.printStackTrace();
                  }
              }
          }
          else
          {
          	Bundle bundle = this.findBundle(resource, bundleContext, ClassFinderActivator.getPackageName(className, false), versionRange);
          	try {
  	            c = bundle.loadClass(className);
              } catch (ClassNotFoundException e) {
                  c = null;
              }
          }
          return c;
      }
docs: Find this class's bundle in the repository
  @param className
  @param versionRange version
  @return