}
  static Context getURLContext (Object refInfo,				Name name,				Context nameCtx,				String scheme,				Hashtable environment)     throws NamingException  {    String prefixes = null;    if (environment != null)      prefixes = (String) environment.get (Context.URL_PKG_PREFIXES);    if (prefixes == null)      prefixes = System.getProperty (Context.URL_PKG_PREFIXES);    if (prefixes == null)      {	// Specified as the default in the docs.  Unclear if this is	// right for us.	prefixes = "com.sun.jndi.url";      }    scheme = scheme + "." + scheme + "URLContextFactory";    StringTokenizer tokens = new StringTokenizer (prefixes, ":");    while (tokens.hasMoreTokens ())      {	String aTry = tokens.nextToken ();	try	  {	    Class factoryClass = Class.forName (aTry + "." + scheme,						true,						Thread.currentThread().getContextClassLoader());	    ObjectFactory factory =	      (ObjectFactory) factoryClass.newInstance ();	    Object obj = factory.getObjectInstance (refInfo, name,						    nameCtx, environment);	    Context ctx = (Context) obj;	    if (ctx != null)	      return ctx;	  }	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.	  }	catch (NamingException _5)	  {	    throw _5;	  }	catch (Exception _6)	  {	    // Anything from getObjectInstance.	  }      }    return null;  }