private static Path toFSGivenRoot(Path root, Path path) {
		if (path.getNameCount() == 0) {
			if (path.isAbsolute()) {
				return root;
			}
			return root.relativize(root);
		}

		String first = path.getName(0).toString();
		String[] names = new String[path.getNameCount() - 1];
		for (int i = 0; i < names.length; i++) {
			names[i] = path.getName(i + 1).toString();
		}
		Path temp = root.getFileSystem().getPath(first, names);
		if (path.isAbsolute()) {
			return root.resolve(temp);
		}
		return temp;
	}
Searches the application classpath (for a module file) and directory structure (for a release
file), depending on whether in release mode or development mode, to find the URL for the 
given relative path.
@param relativePath the path
@return the URL or null if not found
Ghidra/Framework/Help/src/main/java/help/HelpBuildUtils.java