serverNamingContext = (NamingContext)
StubFactory.getInstance().getStub(NamingContext.class);
namePrefix = urlInfo.getNamePrefix();
ObjectRef ncRef = (ObjectRef) serverNamingContext;
ncRef.$setNamingContext(this);
ncRef.$setProtocol(urlInfo.getProtocol());
ncRef.$setHost("ns~" + urlInfo.getHost());
ncRef.$setPort(urlInfo.getPort());
ncRef.$setObjectKey(urlInfo.getObjectKey());
connectionPool = ConnectionPool.getInstance(this);
Object u = env.get(Context.SECURITY_PRINCIPAL);
Object p = env.get(Context.SECURITY_CREDENTIALS);
if (u == null)
{