if (obj == null)
throw new NameNotFoundException("No object bound to name " + name);
if (obj instanceof NamingObjectProxy) {
NamingObjectProxy namingProxy = (NamingObjectProxy) obj;
obj = namingProxy.create(ctx);
} else if( obj instanceof Context ) {
// Need to preserve the original prefix so that further operations
// on the context maintain the correct external view. In the case
// of a replaced java:comp, create a new equivalent javaURLContext
// and return that.