Class k = Class.forName (klassName);
Class k = Class.forName (klassName, true, Thread.currentThread().getContextClassLoader());
  public static Object getStateToBind (Object obj, Name name,				       Context nameCtx, Hashtable environment)    throws NamingException  {    StringTokenizer tokens = getPlusPath (Context.STATE_FACTORIES,					  environment, nameCtx);    while (tokens.hasMoreTokens ())      {	String klassName = tokens.nextToken ();	try	  {	    Class k = Class.forName (klassName);	    StateFactory factory = (StateFactory) k.newInstance ();	    Object o = factory.getStateToBind (obj, name, nameCtx,					       environment);	    if (o != null)	      return o;	  }	catch (ClassNotFoundException _1)	  {	    // Ignore it.	  }	catch (ClassCastException _2)	  {	    // This means that the class we found was not an	    // ObjectFactory or that the factory returned something	    // which was not a Context.	  }	catch (InstantiationException _3)	  {	    // If we couldn't instantiate the factory we might get	    // this.	  }	catch (IllegalAccessException _4)	  {	    // Another possibility when instantiating.	  }      }    return obj;  }