NamingContextExt next_context =
NamingContextExtHelper.narrow((org.omg.CORBA.Object)contexts.get(n));
if ((next_context == null))
{
throw new NotFound(NotFoundReason.missing_node,nc);
}
NameComponent[] nc_prime =
new NameComponent[nc.length-1];
for( int i = 1; i < nc.length; i++)
nc_prime[i-1] = nc[i];
return next_context.resolve(nc_prime);
}
else
{
org.omg.CORBA.Object result = null;
result = (org.omg.CORBA.Object)contexts.get(n);
if( result == null )
result = (org.omg.CORBA.Object)names.get(n);
if (result == null)
throw new NotFound(NotFoundReason.missing_node, n.components());
if ( ping && isDead(result))
{
throw new NotFound(NotFoundReason.missing_node, n.components());
}
return result;
}
}