docs: static JndiContext createJndiContext() throws NamingException
      {
          try
          {
              if (!NamingManager.hasInitialContextFactoryBuilder())
              {
                  JndiContext ctx = new JndiContext();
                  NamingManager.setInitialContextFactoryBuilder(ctx);
                  return ctx;
              }
              else
              {
                  return (JndiContext) NamingManager.getInitialContext(null);
              }
          }
          catch (Exception e)
          {
              jqmlogger.error("Could not create JNDI context: " + e.getMessage());
              NamingException ex = new NamingException("Could not initialize JNDI Context");
              ex.setRootCause(e);
              throw ex;
          }
      }