naming/src/main/java/org/jboss/as/naming/InMemoryNamingStore.java
public List<NameClassPair> list(final Name name) throws NamingException {
        final Name nodeName = name.isEmpty() ? new CompositeName("") : name;
        return root.accept(new ListVisitor(nodeName));
    }
public List<NameClassPair> list(final Name name) throws NamingException {
        final Name nodeName = name.isEmpty() ? new CompositeName("") : name;
        return root.accept(new ListVisitor(nodeName));
    }
public List < NameClassPair > list ( final Name name ) throws NamingException { final Name nodeName = name . isEmpty ( ) ? new CompositeName ( "" ) : name ; return root . accept ( new ListVisitor ( nodeName ) ) ; }
List all NameClassPair instances at a given location in the tree.

@param name The entry name
@return The NameClassPair instances
@throws NamingException
List all NameClassPair instances at a given location in the tree .