Class k = Class.forName (fClass);
Class k = Class.forName (fClass, true, Thread.currentThread().getContextClassLoader());
  public static Object getObjectInstance (Object refInfo,					  Name name,					  Context nameCtx,					  Hashtable environment)    throws Exception  {    ObjectFactory factory = null;    if (ofb != null)      factory = ofb.createObjectFactory (refInfo, environment);    else      {	// First see if we have a Reference or a Referenceable.  If so	// we do some special processing.	Object ref2 = refInfo;	if (refInfo instanceof Referenceable)	  ref2 = ((Referenceable) refInfo).getReference ();	if (ref2 instanceof Reference)	  {	    Reference ref = (Reference) ref2;	    // If we have a factory class name then we use that.	    String fClass = ref.getFactoryClassName ();	    if (fClass != null)	      {		// Exceptions here are passed to the caller.		Class k = Class.forName (fClass);		factory = (ObjectFactory) k.newInstance ();	      }	    else	      {		// There's no factory class name.  If the address is a		// StringRefAddr with address type `URL', then we try		// the URL's context factory.		Enumeration e = ref.getAll ();		while (e.hasMoreElements ())		  {		    RefAddr ra = (RefAddr) e.nextElement ();		    if (ra instanceof StringRefAddr			&& "URL".equals (ra.getType ()))		      {			factory			  = (ObjectFactory) getURLContext (refInfo,							   name,							   nameCtx,							   (String) ra.getContent (),							   environment);			Object obj = factory.getObjectInstance (refInfo,								name,								nameCtx,								environment);			if (obj != null)			  return obj;		      }		  }		// Have to try the next step.		factory = null;	      }	  }	// Now look at OBJECT_FACTORIES to find the factory.	if (factory == null)	  {	    StringTokenizer tokens = getPlusPath (Context.OBJECT_FACTORIES,						  environment, nameCtx);	    while (tokens.hasMoreTokens ())	      {		String klassName = tokens.nextToken ();		Class k = Class.forName (klassName);		factory = (ObjectFactory) k.newInstance ();		Object obj = factory.getObjectInstance (refInfo, name,							nameCtx, environment);		if (obj != null)		  return obj;	      }	    // Failure.	    return refInfo;	  }      }    if (factory == null)      return refInfo;    Object obj = factory.getObjectInstance (refInfo, name,					    nameCtx, environment);    return obj == null ? refInfo : obj;  }