code: public void addDiscoveredBda(ArchiveType moduleType, WebSphereBeanDeploymentArchive bda) throws CDIException {
          webSphereCDIDeployment.addBeanDeploymentArchive(bda);
          Set<WebSphereBeanDeploymentArchive> bdaSet = bdasByType.get(moduleType);
          if (bdaSet != null) {
              bdaSet.add(bda);
          } else {
              if (tc.isDebugEnabled()) {
                  Tr.debug(tc, "Ignore this type: {0}, as CDI does not need to add this in the addDiscoveredBda ", moduleType);
              }
          }
  
          String path = bda.getArchive().getPath();
          if (moduleType == ArchiveType.SHARED_LIB || moduleType == ArchiveType.EAR_LIB) {
              libraryPaths.add(path);
          } else if (moduleType == ArchiveType.RAR_MODULE || moduleType == ArchiveType.EJB_MODULE) {
              modulePaths.add(path);
          }
      }
docs: Registers a newly discovered BDA and adds it to the deployment
  
  @param moduleType the module type
  @param bda the new BDA
  @throws CDIException