code: private void registerPathMapping(PathMapping pathMapping, String filePath) throws IOException {
  		if (filePath != null) {
  
  			Path p = Paths.get(filePath);
  			boolean isDir = Files.isDirectory(p);
  			if (!isDir) {
  				p = p.getParent();
  			}
  
  			if (pathMapping.isRecursive()) {
  				registerAll(p, Arrays.asList(pathMapping));
  			} else {
  				register(p, Arrays.asList(pathMapping));
  			}
  		}
  	}
docs: Register the path mapping
  
  @param pathMapping
  the path mapping
  @param filePath
  the file path
  @throws IOException
  if an IOException occurs