*/
public NamingEnumeration list(Name name)
throws NamingException {
if (name.isEmpty()) {
try {
return new NamingContextEnumeration(list(base).iterator());
} catch (IOException e) {
NamingException ex = new NamingException
(sm.getString("resources.notFound", name));
ex.initCause(e);
throw ex;
}
}
VirtualFile entry = null;
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));
try {
return new NamingContextEnumeration(list(entry).iterator());
} catch (IOException e) {
NamingException ex = new NamingException
(sm.getString("resources.notFound", name));
ex.initCause(e);
throw ex;