class PathUtil {

	public static List<String> split(String path) {
		if (path == null) {
			return null;
		}
		path = fix(path);
		if (path.length() == 0) {
			return Collections.emptyList();
		}
		path = path.replaceAll("^/", "");
		path = path.replaceAll("/$", "");
		String[] ret = path.split("/");
		return Arrays.asList(ret);
	}

}