public NamingEnumeration<Binding> listBindings(String name) throws NamingException {
Object o = lookup(name);
if (o instanceof Context) {
Context context = (Context) o;
NamingEnumeration<NameClassPair> enumeration = context.list("");
List<NameClassPair> bindings = new ArrayList<NameClassPair>();
while (enumeration.hasMoreElements()) {
NameClassPair pair = enumeration.nextElement();
bindings.add(new LazyBinding(pair.getName(), pair.getClassName(), context));