code: public boolean isAlreadyAccessible(ArchiveType archiveType, CDIArchive archive) throws CDIException {
          String path = archive.getPath();
          if (libraryPaths.contains(path)) {
              return true;
          } else if (archiveType == ArchiveType.EAR_LIB || archiveType == ArchiveType.RAR_MODULE || archiveType == ArchiveType.EJB_MODULE
                     || archiveType == ArchiveType.WEB_MODULE || archiveType == ArchiveType.CLIENT_MODULE) {
              return modulePaths.contains(path);
          } else {
              return false;
          }
      }
docs: Returns true if the given archive is accessible to all modules of the given module type
  <ul>
  <li>EAR and shared libraries are available to all modules</li>
  <li>EJB and RAR modules are accessible to all other EJB modules, RAR modules and Web modules</li>
  <li>Web and App Client modules are not accessible to other modules</li>
  </ul>
  
  @param archiveType the module type
  @param archive an archive
  @return true if the archive is available to all modules of archiveType, otherwise false
  @throws CDIException