code: @Override
      public BeansXml getBeansXml() {
          if (this.beansXml == null) {
              Resource beansXmlResource = archive.getBeansXml();
              if (beansXmlResource != null) {
                  URL beansXmlUrl = beansXmlResource.getURL();
                  Bootstrap bootstrap = getCDIDeployment().getBootstrap();
                  final ClassLoader origTCCL = getContextClassLoader();
                  try {
                      // Must use this class's loader as the context classloader to ensure
                      // that we load Liberty's XML parser rather than any parser defined
                      // in the application.
                      setContextClassLoader(BeanDeploymentArchiveImpl.class.getClassLoader());
                      beansXml = bootstrap.parse(beansXmlUrl);
                  } finally {
                      setContextClassLoader(origTCCL);
                  }
              }
          }
          return this.beansXml;
      }
docs: /*
  (non-Javadoc)
  
  @see org.jboss.weld.bootstrap.spi.BeanDeploymentArchive#getBeansXml()