private static final void listContext(Context context, String indent) 
	{
		try 
		{
			NamingEnumeration list = context.listBindings("");
			
			while (list.hasMore()) 
			{
				Binding item = (Binding) list.next();
				String className = item.getClassName();
				String name = item.getName();
				System.out.println("" + className + " " + name);
				Object object = item.getObject();
				
				if (object instanceof javax.naming.Context) 
				{
					listContext((Context) object, indent + " ");
				}
			}
		} 
		catch (NamingException ex) 
		{
			System.out.println("JNDI failure: " + ex);
		}
	}