code: private void addFileIfNotMapped(String filePath) throws DuplicateBundlePathException {
  
  		for (JoinableResourceBundle bundle : currentBundles) {
  			List<BundlePath> items = bundle.getItemPathList();
  			List<BundlePath> itemsDebug = bundle.getItemDebugPathList();
  			Set<String> licenses = bundle.getLicensesPathList();
  
  			for (BundlePath path : items) {
  				if (path.getPath().equals(filePath)) {
  					return;
  				}
  			}
  			for (BundlePath path : itemsDebug) {
  				if (path.getPath().equals(filePath)) {
  					return;
  				}
  			}
  
  			if (licenses.contains(filePath))
  				return;
  			else if (filePath.equals(bundle.getId())) {
  				Marker fatal = MarkerFactory.getMarker("FATAL");
  				LOGGER.error(fatal, "Duplicate bundle id resulted from orphan mapping of:" + filePath);
  				throw new DuplicateBundlePathException(filePath);
  			}
  		}
  
  		if (!filePath.startsWith(JawrConstant.WEB_INF_DIR_PREFIX)
  				&& !filePath.startsWith(JawrConstant.META_INF_DIR_PREFIX)) {
  
  			if (LOGGER.isDebugEnabled())
  				LOGGER.debug("Adding orphan resource: " + filePath);
  
  			// If we got here, the resource belongs to no other bundle.
  			bundleMapping.add(filePath);
  		}
  	}
docs: Determine whether a resource is already added to some bundle, add it to
  the list if it is not.
  
  @param filePath
  @param currentMappedResources