/* */ public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable environment)
/* */ throws Exception
/* */ {
/* 57 */ if (obj == null)
/* */ {
/* 59 */ Context urlContext = new NamingContext(environment, name, null);
/* 60 */ return urlContext;
/* */ }
/* 62 */ if ((obj instanceof String))
/* */ {
/* 64 */ String url = (String)obj;
/* 65 */ Context ctx = new NamingContext(environment, name, null);
/* */
/* 67 */ Name n = ctx.getNameParser(name).parse(url.substring(url.indexOf(":") + 1));
/* 68 */ if (n.size() >= 3)
/* */ {
/* 71 */ if ((n.get(0).toString().equals("")) && (n.get(1).toString().equals("")))
/* */ {
/* 74 */ ctx.addToEnvironment("java.naming.provider.url", n.get(2));
/* */ }
/* */ }
/* 77 */ return ctx;
/* */ }
/* */