code: private void register(PathMapping pathMapping) throws IOException {
  
  		GeneratorRegistry generatorRegistry = bundlesHandler.getConfig().getGeneratorRegistry();
  		List<PathMapping> mappings = new ArrayList<>();
  		if (generatorRegistry.isPathGenerated(pathMapping.getPath())) {
  			List<PathMapping> genPathMappings = generatorRegistry.getGeneratedPathMappings(pathMapping.getBundle(),
  					pathMapping.getPath(), rsReader);
  			if (genPathMappings != null) {
  				mappings.addAll(genPathMappings);
  			} else {
  				mappings.add(pathMapping);
  			}
  		} else {
  			mappings.add(pathMapping);
  		}
  
  		for (PathMapping pMapping : mappings) {
  			String filePath = rsReader.getFilePath(pMapping.getPath());
  			registerPathMapping(pMapping, filePath);
  		}
  	}
docs: Register a path mapping
  
  @param pathMapping
  the path mapping to register
  @throws IOException
  if an IOException occurs