code: public Object convertStringToObject(Object resource, String className, String versionRange, String string)
      {
          if ((string == null) || (string.length() == 0))
              return null;
          Object object = null;
          try {
              if (resource == null)
              {
                  Object classAccess = this.getClassBundleService(null, className, versionRange, null, 0);
                  if (classAccess != null)
                  	object = this.convertStringToObject(string);
              }
              else
              {
              	/*Bundle bundle =*/ this.findBundle(resource, bundleContext, ClassFinderActivator.getPackageName(className, false), versionRange);
  	            object = this.convertStringToObject(string);
              }
          } catch (ClassNotFoundException e) {
              e.printStackTrace();
          }
          return object;
      }
docs: Convert this encoded string back to a Java Object.
  @param versionRange version
  @param string The string to convert.
  @return The java object.