return root;
return PathUtil.removeLeadingSlash(PathUtil.removeTail(root));
    public static String getCommonRoot(String[] paths) {        if (paths.length == 1) {            return PathUtil.removeLeadingSlash(PathUtil.removeTail(paths[0]));        }         String[] p = new String[paths.length];        for(int i = 0; i < p.length; i++) {            p[i] = paths[i].replace(File.separatorChar, '/');        }        String root = paths[0];        for (int i = 1; i < paths.length; i++) {			root = getCommonAncestor(root, paths[i]);		}        return root;    }