public Object lookup(String name) throws NamingException {
if (Trace.logger.isLoggable(BasicLevel.DEBUG))
Trace.logger.log(BasicLevel.DEBUG, "NamingContextImpl.lookup(" +
name + ')');
CompositeName path = merge(contextPath, name);
JndiReply reply = connection.invoke(new LookupRequest(path));
if (reply instanceof JndiError) {
NamingException exc = ((JndiError)reply).getException();
exc.fillInStackTrace();
throw exc;
} else if (reply instanceof LookupReply) {