private static List<String> split(String path) {
        String[] pathComponents = path.split("/");
        List<String> l = new ArrayList<String>();
        for (String s : pathComponents) {
            if (s != null && !s.isEmpty()) {
                l.add(s);
            }
        }
        return l;
    }