docs: @FFDCIgnore(NameNotFoundException.class)
      private BeanManager getBeanManager() {
  
          BeanManager manager = null;
  
  //        if (manager != null)
  //        {
  //            return manager;
  //        }
  //        else {
          try {
              InitialContext initialContext = new InitialContext();
              manager = (BeanManager) initialContext.lookup("java:comp/BeanManager");
  //            manager = CDI.current().getBeanManager();
              JAXWSCDIServiceImplByJndi.setBeanManager(manager);
          } catch (NameNotFoundException e) {
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                  Tr.debug(tc, "Couldn't get BeanManager through JNDI: " + JAXWSCDIConstants.JDNI_STRING + ", but ignore the FFDC: " + e.toString());
              }
          } catch (Exception e) {
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                  Tr.debug(tc, "Couldn't get BeanManager through JNDI: " + JAXWSCDIConstants.JDNI_STRING + ". " + e.toString());
              }
          }
          return manager;
  //        }
      }