try {
entry = treeLookup(name);
} catch (IOException e) {
NamingException ex = new NamingException
(sm.getString("resources.notFound", name));
ex.initCause(e);
throw ex;
}
if (entry == null)
throw new NamingException
(sm.getString("resources.notFound", name));