@Override
	public NamingEnumeration<NameClassPair> list(Name name) throws NamingException
    {
        if (name.isEmpty())
            return new ListOfNames(bindings.keys());

        Object target = lookup(name);
        if (target instanceof Context)
        {
            try
            {
                return ((Context)target).list("");
            }
            finally
            {
                ((Context)target).close();
            }
        }
        throw new NotContextException(name + " cannot be listed");
    }
@ Override public NamingEnumeration < NameClassPair > list ( Name name ) throws NamingException { if ( name . isEmpty ( ) ) return new ListOfNames ( bindings . keys ( ) ) ; Object target = lookup ( name ) ; if ( target instanceof Context ) { try { return ( ( Context ) target ) . list ( "" ) ; } finally { ( ( Context ) target ) . close ( ) ; } } throw new NotContextException ( name + " cannot be listed" ) ; }
/*
(non-Javadoc)
@see javax.naming.Context#list(javax.naming.Name)