code: public String list()
     {
        StringBuilder sb = new StringBuilder();
  
        Context c = null;
        try
        {
           c = new InitialContext();
           Context context = (Context)c.lookup("java:");
           sb.append("java:").append(NEW_LINE);
           list(context, " ", sb);
        }
        catch (Throwable t)
        {
           log.debug(t.getMessage(), t);
        }
        finally
        {
           if (c != null)
           {
              try
              {
                 c.close();
              }
              catch (Throwable ignore)
              {
                 // Ignore
              }
           }
        }
  
        return sb.toString();
     }
docs: List
  @return The JNDI view